Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. import turtle as t
  2. import random as r
  3.  
  4. # list of shades of blue
  5. colourBlue = ['midnight blue', 'navy', 'cornflower blue', 'dark slate blue',
  6. 'slate blue', 'medium slate blue', 'light slate blue', 'medium blue', 'royal
  7. blue', 'blue', 'dodger blue', 'deep sky blue']
  8.  
  9.  
  10. # Call a colour from the list and draw a circle of said colour
  11. def circle():
  12. t.pendown()
  13. t.begin_fill()
  14. t.color(r.choice(colourBlue))
  15. t.circle(10)
  16. t.end_fill()
  17. t.penup()
  18.  
  19. # Defines a function that loops through ColourBlue list
  20.  
  21. def colourPick():
  22. colourBlueLen = len(colourBlue)
  23. for i in range(11, colourBlueLen):
  24. i = colourBlue[0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement