Commit 01048a2c by BellCodeEditor

auto save

parent 9fc0b85a
Showing with 2 additions and 2 deletions
...@@ -15,14 +15,14 @@ pen.down() ...@@ -15,14 +15,14 @@ pen.down()
def tree(n,s): def tree(n,s):
if n>=10: if n>=10:
if n<=20: if n<=50:
c=random.choice(["snow","lightcoral"]) c=random.choice(["snow","lightcoral"])
pen.color(c) pen.color(c)
pen.pensize(3) pen.pensize(3)
else: else:
pen.color("sienna") pen.color("sienna")
s=s/3 s=s/20
pen.pensize(s) pen.pensize(s)
pen.forward(n) pen.forward(n)
a=random.randint(5,30) a=random.randint(5,30)
......
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