Commit 8405d62e by BellCodeEditor

auto save

parent 87e3fd60
Showing with 30 additions and 9 deletions
import turtle
pen=turtle.Pen()
pen.fillcolor("green")
pen.begin_fill()
for i in range(6):
pen.forward(100)
pen.right(60)
pen.end_fill()
turtle.done
import turtle as a
import random
a.color("sienna")
b=a.Screen()
b.bgcolor("wheat")
a.left(90)
a.up()
a.forward(-200)
a.down()
def f(x):
if x>0:
if x<25:
a.pensize(x/3)
a.pencolor(random.choice(["snow","lightcoral"]))
else:
a.pensize(x/10)
a.pencolor("sienna")
a.forward(x)
c=random.randint(10,35)
d=random.randint(10,25)
a.right(c)
f(x-d)
a.left(2*c)
f(x-d)
a.right(c)
a.up()
a.forward(-x)
a.down()
f(125)
a.done()
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