Commit 958b5c97 by BellCodeEditor

save project

parent c83d284e
Showing with 11 additions and 8 deletions
......@@ -14,19 +14,22 @@ down()
def tree(n):
if n>=0:
if n <=12
l_list = ['snow','lightcoral']
c = random.choice(l_list)
color(color)
if n <=12:
l_list=['snow','lightcoral']
c = random.choice(l_list)
color(c)
pensize(n/3)
else:
color("sienna")
pensize(n/10)
fd(n)
q = random.randint(0,30)
w = random.randint(0,15)
w = random.randint(1,15)
rt(q)
tree(n-w)
lt(60)
lt(2*q)
tree(n-w)
right(2*q)
right(q)
up()
bk(n)
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