Pakulichev

Secret Code

Dec 21st, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. import turtle
  2.  
  3. wp = turtle.Screen()
  4. wp.bgcolor("black")
  5.  
  6. t = turtle.Turtle()
  7. t.speed(10000000)
  8.  
  9. t.penup()
  10. t.backward(450)
  11. t.left(90)
  12. t.forward(450)
  13. t.right(90)
  14.  
  15. colors = ["blue", "yellow"]
  16.  
  17. t.pendown()
  18. t.color(colors[0])
  19.  
  20. for i in range(450):
  21.   if i <= 225:
  22.     t.color(colors[0])
  23.   else:
  24.     t.color(colors[1])
  25.   t.forward(900)
  26.   t.right(90)
  27.   t.forward(1)
  28.   t.right(90)
  29.   t.forward(900)
  30.   t.left(90)
  31.   t.forward(1)
  32.   t.left(90)
Add Comment
Please, Sign In to add comment