Commit 186706d2 by BellCodeEditor

auto save

parent 7538f71c
Showing with 3 additions and 3 deletions
......@@ -15,14 +15,14 @@ pen.backward(150) # 后退
pen.down()
def tree(n):
if n>=0:
if n<=12:
if n >= 0:
if n <= 12:
color_list = ['snow','lightcoral']
color = random.choice(color_list)
pen.color(color)
pen.pensize(n/3)
else:
pen.color("sinnea")
pen.color("sienna")
pen.pensize(n/10)
pen.fd(n)
angle = random.random()
......
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