Commit b1caec75 by BellCodeEditor

save project

parent 87f6955e
Showing with 25 additions and 13 deletions
......@@ -2,18 +2,30 @@ import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
pen.pencolor("red")
len=(50)
pen.left(45)
pen.forward(100)
pen.circle(2*25,180)
pen.right(90)
pen.circle(2*25,180)
pen.forward(100)
pen.penup()
pen.left(45)
pen.forward(60)
color_list=['red']
pen.pendown()
color="yellow"
pen.pencolor(color)
x=-200
y=60
len=3
pen.speed(0)
pen.up()
pen.goto(-200,0)
for i in range(100):
len+=5
pen.setheading(0)
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
x+=10
y-=10
pen.penup()
pen.goto(x,y)
pen.pendown()
turtle.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