Commit cc8326fe by BellCodeEditor

save project

parent 18d3c779
Showing with 7 additions and 5 deletions
......@@ -17,11 +17,13 @@ def tree(n):
pen.pencolor("sienna")
pen.pensize(n/10)
pen.forward(n)
pen.right(30)
tree(n-10)
pen.left(60)
tree(n-10)
pen.right(30)
a = random.randint(0,30)
l = random.randint(1,15)
pen.right(a)
tree(n-l)
pen.left(2*a)
tree(n-l)
pen.right(a)
pen.up()
pen.backward(n)
pen.down()
......
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