Commit 63d33d5a by BellCodeEditor

save project

parent e18f34f2
Showing with 5 additions and 2 deletions
...@@ -2,8 +2,11 @@ import turtle ...@@ -2,8 +2,11 @@ import turtle
a=1 a=1
pen=turtle.Pen() pen=turtle.Pen()
pen.speed(100) pen.speed(100)
colors=["red","orange","yellow","green"]
screen=turtle.Screen()
screen.bgcolor("black")
for i in range(1,300): for i in range(1,300):
pen.pencolor(colors[i%4])
pen.forward(i) pen.forward(i)
pen.right(91) pen.right(91)
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