Personal tools
You are here: o studio 110 2016-17 tmp Inf 11 doku doku s py s upload weihnachtsbaum 2 jakob.py

weihnachtsbaum 2 jakob.py

Jakob Heddendorp

weihnachtsbaum 2 jakob.py — Python Source, 1Kb

File contents

from turtle import *
ht()
color("green")
begin_fill()
forward(240)
right(20)
backward(250)
left(20)
forward(200)
right(20)
backward(210)
left(20)
forward(160)
right(20)
backward(170)
left(20)
forward(120)
right(20)
backward(130)
left(20)
forward(80)
right(40)
backward(150)
left(260)
forward(150)
right(40)
backward(80)
left(20)
forward(130)
right(20)
backward(120)
left(20)
forward(170)
right(20)
backward(160)
left(20)
forward(210)
right(20)
backward(200)
left(20)
forward(250)
right(20)
backward(240)
end_fill()
color("brown")
begin_fill()
left(90)
forward(150)
left(90)
forward(58)
left(90)
forward(150)
end_fill()
pu()
sety(-165)
setx(20)
pd()
color("red")
begin_fill()
forward(50)
right(90)
forward(50)
right(90)
forward(50)
right(90)
forward(50)
end_fill()
color("red")
right(180)
forward(22.5)
color("white")
begin_fill()
left(90)
forward(50)
right(90)
forward(5)
right(90)
forward(50)
right(90)
forward(5)
end_fill()
color("red")
forward(22.5)
right(90)
forward(22.5)
right(90)
color("white")
begin_fill()
forward(50)
left(90)
forward(5)
left(90)
forward(50)
left(90)
forward(5)
end_fill()
Document Actions