Commit 8268e965 by BellCodeEditor

save project

parent 8230d6af
Showing with 4 additions and 1 deletions
......@@ -15,10 +15,13 @@ pen.down()
def tree(n):
if n>=0:
pen.pesize(n/10)
pen.speed(0)
pen.forward(n)
angle=random.randint(0,30)
length=random.randint(1,15)
pen.right(30)
tree(n-10)
tree(n-length)
pen.left(60)
tree(n-10)
pen.right(30)
......
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