Commit 82fe662a by BellCodeEditor

save project

parent 586085ee
Showing with 9 additions and 17 deletions
import turtle
pen = turtle.Pen()
a = 1
pen.speed(0)
for i in range(300):
pen.color("red")
pen.forward(a)
pen.right(91)
a += 0.5
pen.color("yellow")
pen.forward(a)
pen.right(91)
a += 0.5
pen.color("green")
d=1
screen = turtle.Screen()
#screen.bgcolor("black")
colors = ["red","orange","yellow","green","blue","purple"]
for i in range(1,10000):
pen.pencolor(colors[i%6])
pen.forward(d)
pen.right(91)
d += 0.5
pen.color("blue")
pen.forward(d)
pen.right(91)
d += 0.5
pen.right(195)
d += 1
pen.hideturtle()
turtle.done()
\ No newline at end of file
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