Personal tools
You are here: o studio 110 2016-17 tmp Inf 11 doku doku s py s upload haus klein - emily.py

haus klein - emily.py

Emily

haus klein - emily.py — Python Source, 0Kb

File contents

from turtle import *


width(5)
#Häuschen
forward(50)
right(90)
forward(50)
right(90)
forward(50)
right(90)
forward(50)
#Dach
color("red")
right(45)
forward(36)
right(90)
forward(36)
penup()
setposition(17,-50)
right(45)
right(180)
#Tür
color("black")
down()
forward(25)
right(90)
forward(15)
right(90)
forward(25)
up()
#Sonne
ht()
setposition(100,100)
down()
st()
color("yellow")
begin_fill()
circle(20,360,20)
end_fill()
right(90)
forward(20)
up()
left(180)
forward(60)
down()
forward(20)
up()
left(180)
forward(40)
right(90)
forward(20)
down()
forward(20)
up()
right(180)
forward(60)
down()
forward(20)
up()
right(180)
forward(40)
right(45)
forward(20)
down()
forward(20)
up()
right(180)
forward(60)
down()
forward(20)
up()
right(180)
forward(40)
left(90)
forward(20)
down()
forward(20)
up()
right(180)
forward(60)
down()
forward(20)





Document Actions