Commit 0b5acee3 by BellCodeEditor

save project

parent 2b5762b9
Showing with 6 additions and 5 deletions
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
import turtle import turtle
pen = turtle.Pen() pen = turtle.Pen()
pen.color("red") screen=turtle.Screen()
i=1 screen.bgcolor("black")
for i in range(600): colors=["green","red","orange","yellow"]
for i in range(1,601):
pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
pen.right(91) pen.right(91)
distance=i+2 turrle.hideturtle()
pen.hideturtle()
turtle.done() 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