Commit aed2a6b7 by BellCodeEditor

save project

parent eb3b931d
Showing with 13 additions and 1 deletions
import turtle
pen = turtle.Pen()
colors=["red","orange","yello","green","blue"]
screen=turtle.Screen()
screen.bgcolor("black")
for i in range(1,500,1):
pen.pencolor(colors[i%5])
pen.right(91)
pen.forward(i)
pen.hideturtle()
turtle.done()
\ No newline at end of file
...@@ -7,7 +7,7 @@ pen = turtle.Pen() ...@@ -7,7 +7,7 @@ pen = turtle.Pen()
colors=["indigo","darkorchid","darkviolet","mediumorchid"] colors=["indigo","darkorchid","darkviolet","mediumorchid"]
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("black") screen.bgcolor("black")
for i in range(1,300): for i in range(1,500):
pen.pencolor(colors[i%4]) pen.pencolor(colors[i%4])
pen.right(91) pen.right(91)
pen.forward(i) pen.forward(i)
......
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