Commit c2e5703f by BellCodeEditor

save project

parent ecfc5960
Showing with 14 additions and 10 deletions
......@@ -7,14 +7,17 @@ p.left(90)
p.pensize(5)
p.hideturtle()
p.speed(11)
size = 100
p.forward(size)
size /= 2
p.left(30)
p.forward(size)
p.penup()
p.backward(size)
p.pendown()
p.right(60)
p.forward(size)
def tree(size):
if size >= 0:
p.forward(size)
p.left(30)
tree(size-20)
p.right(60)
tree(size-20)
p.left(30)
p.penup()
p.backward(size)
p.pendown()
tree(100)
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment