Commit 3b400af0 by BellCodeEditor

save project

parent 7521eac0
Showing with 9 additions and 7 deletions
import turtle
pen=turtle.Pen()
pen.speed(100)
pen.pencolor('red')
for i in range(1,301):
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("black")
colors=["yellow","blue","red","green"]
pen.speed(1000)
for i in range(1,300):
pen.pencolor(colors[i%4])
pen.forward(i)
pen.left(91)
pen.right(91)
pen.hideturtle()
turtle.done()
\ No newline at end of file
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