Commit 958b5c97 by BellCodeEditor

save project

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