Advertisement
calfred2808

#Python Making Design

Jul 21st, 2020
1,068
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.  
  3.  
  4. colors = ['red', 'purple', 'blue', 'green', 'orange', 'yellow']
  5.  
  6. t = turtle.Pen()
  7.  
  8.  
  9. turtle.bgcolor("black")
  10.  
  11. for x in range(360):
  12.     t.pencolor(colors[x%6])
  13.     t.width(x/100 + 1)
  14.     t.forward(x)
  15.     t.left(59)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement