Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle as t
- import random as r
- # list of shades of blue
- colourBlue = ['midnight blue', 'navy', 'cornflower blue', 'dark slate blue',
- 'slate blue', 'medium slate blue', 'light slate blue', 'medium blue', 'royal
- blue', 'blue', 'dodger blue', 'deep sky blue']
- # Call a colour from the list and draw a circle of said colour
- def circle():
- t.pendown()
- t.begin_fill()
- t.color(r.choice(colourBlue))
- t.circle(10)
- t.end_fill()
- t.penup()
- # Defines a function that loops through ColourBlue list
- def colourPick():
- colourBlueLen = len(colourBlue)
- for i in range(11, colourBlueLen):
- i = colourBlue[0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement