Personal tools
You are here: o studio 110 2016-17 tmp Inf 11 doku doku s py s upload Häuserreihe levi.py

Häuserreihe levi.py

Levi

Häuserreihe levi.py — Python Source, 1Kb

File contents

from turtle import*
t1 = Turtle()
t2 = Turtle()
t3 = Turtle()
t4 = Turtle()
t1.speed(5)
t2.speed(5)
t3.speed(5)
t4.speed(5)
beide = t1,t2
t1.color("red")
t2.color("green")
t3.color("blue")
t4.color("orange")
t1.hideturtle()
t2.hideturtle()
t3.hideturtle()
t4.hideturtle()
t1.pensize(4)
t2.pensize(4)
t3.pensize(4)
t4.pensize(4)
t2.up()
t3.up()
t4.up()
t2.setposition(-201,0)
t3.setposition(-401,0)
t4.setposition(201,0)
t2.pd()
t3.pd()
t4.pd()


t1.forward(200)
t1.left(90)
t1.forward(200)
t1.left(90)
t1.forward(200)
t1.left(90)
t1.forward(200)
t1.left(135)
t1.forward(282.84)
t1.left(90)
t1.forward(142)
t1.left(90)
t1.forward(142)
t1.left(90)
t1.forward(282.84)
t1.penup()
t1.setposition(78,220)
t1.pd()
t1.circle(30)

t2.forward(200)
t2.left(90)
t2.forward(200)
t2.left(90)
t2.forward(200)
t2.left(90)
t2.forward(200)
t2.left(135)
t2.forward(282.84)
t2.left(90)
t2.forward(142)
t2.left(90)
t2.forward(142)
t2.left(90)
t2.forward(282.84)
t2.penup()
t2.setposition(-123,220)
t2.pd()
t2.circle(30)


t3.forward(200)
t3.left(90)
t3.forward(200)
t3.left(90)
t3.forward(200)
t3.left(90)
t3.forward(200)
t3.left(135)
t3.forward(282.84)
t3.left(90)
t3.forward(142)
t3.left(90)
t3.forward(142)
t3.left(90)
t3.forward(282.84)
t3.penup()
t3.setposition(-323,220)
t3.pd()
t3.circle(30)

t4.forward(200)
t4.left(90)
t4.forward(200)
t4.left(90)
t4.forward(200)
t4.left(90)
t4.forward(200)
t4.left(135)
t4.forward(282.84)
t4.left(90)
t4.forward(142)
t4.left(90)
t4.forward(142)
t4.left(90)
t4.forward(282.84)
t4.penup()
t4.setposition(278,220)
t4.pd()
t4.circle(30)

Document Actions