Commit b1caec75 by BellCodeEditor

save project

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