MUstar

IoT Python3 0816 - Turtle_PentagonCircle

Aug 16th, 2017
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import turtle as t
  2.  
  3. t.bgcolor("black")
  4. t.speed(0)
  5.  
  6. for x in range(200):
  7.     if x%5 == 1:
  8.         t.color("red")
  9.     if x%5 == 2:
  10.         t.color("yellow")
  11.     if x%5 == 3:
  12.         t.color("green")
  13.     if x%5 == 4:
  14.         t.color("blue")
  15.     if x%5 == 0:
  16.         t.color("purple")
  17.     t.forward(x*1.2)
  18.     t.left(71)
RAW Paste Data