Commit 0687e48e by BellCodeEditor

save project

parent 6cdb7eb9
Showing with 2 additions and 1 deletions
...@@ -3,8 +3,9 @@ import random ...@@ -3,8 +3,9 @@ import random
def tree(n): def tree(n):
if n >= 10: if n >= 10:
len = random.randint(10,30) len = random.randint(0,30)
angle = random.randint(15,30) angle = random.randint(15,30)
pen.pensize(n/20)
pen.forward(n) pen.forward(n)
pen.right(angle) pen.right(angle)
tree(n-len) tree(n-len)
......
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