Commit c83d284e by BellCodeEditor

save project

parent d79d939c
Showing with 11 additions and 5 deletions
...@@ -14,13 +14,19 @@ down() ...@@ -14,13 +14,19 @@ down()
def tree(n): def tree(n):
if n>=0: if n>=0:
if n <=12
l_list = ['snow','lightcoral']
c = random.choice(l_list)
color(color)
fd(n) fd(n)
q = random.rand(0,30) q = random.randint(0,30)
rt() w = random.randint(0,15)
tree(n-10) rt(q)
tree(n-w)
lt(60) lt(60)
tree(n-10) tree(n-w)
right(30) right(2*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