Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FinalSpyrall
- #By: Katherine Tsui
- sides = eval (input ("enter between 2 and 6"))
- import turtle
- t = turtle.Pen()
- turtle.bgcolor("black")
- colors = ["red","green","purple","white","yellow ","orange"]
- #you can choose between 2 & 6 sides
- for x in range(360):
- t.pencolor(colors[x%sides])
- t.forward(x*3/sides+x)
- t.left(360/sides+1)
- t.width(x*sides/200)
- t.speed(250)
Add Comment
Please, Sign In to add comment