Commit bf49c36d by BellCodeEditor

save project

parent 3f232f9d
Showing with 22 additions and 3 deletions
import turtle
import random
t=turtle.Pen()
t.left(90)
t.up()
t.backward(150)
t.down()
def tree(n):
if n>=50:
pen.forward(n)
pen.right(30)
if n<=12:
color=['snow','lightcoral']
color1=random.choice(lolor)
t.color(color1)
t.pensize(n/3)
else:
t.color('sienna')
t.pensize(n)
angle=random.random()
t.right(30*angle)
lenght=
tree()
tree(60)
t.turtle.down()
\ No newline at end of file
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