Commit 12f5aa11 by BellCodeEditor

auto save

parent 22c8fcc2
Showing with 8 additions and 0 deletions
......@@ -14,6 +14,14 @@ pen.down()
def tree(n):
if n>=10:
if n<=12:
color_list=['snow','lightcoral']
color=random.choice(color_list)
pen.pencolor(color)
pen.rensize(n/3)
else:
pen.pencolor('sienna')
pen.rensize(n/10)
pen.forward(n)
angle=random.randint(0,30)
length=random.randint(1,15)
......
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