Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- colors = ["red", "orange", "purple", "yellow", "blue","green"]
- t = turtle.Pen()
- turtle.bgcolor("black")
- turtle.speed(100)
- for x in range(360):
- t.pencolor(colors[x % len(colors)])
- t.width(x // 100 + 1)
- t.forward(x)
- t.left(59)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement