Advertisement
rajath_pai

Untitled

Sep 19th, 2020
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import turtle
  2. colors = ['red', 'purple', 'blue', 'green', 'orange', 'yellow']
  3. t = turtle.Pen()
  4. turtle.bgcolor('black')
  5. for x in range(360):
  6.     t.pencolor(colors[x%6])
  7.     t.width(x/100 + 1)
  8.     t.forward(x)
  9.     t.left(59)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement