# Author: Scott Wehrwein
# Date: 05/10/2021
# A program that makes a long list of turtles and sends them
# each on their way.

import turtle
import random

# setup for quick drawing and 0-255 colors
turtle.tracer(0, 0)
turtle.colormode(255)

# create a list containing 60 turtles:
bale = []
for i in range(60):
    bale.append(turtle.Turtle())
    bale[i].left(6*i)

# repeat the following process 360 times:
for j in range(360):
    
    # for each turtle:
    for i in range(60):
        # set the turtle's pen color to be unique to that turtle
        # based on the value of i
        bale[i].pencolor((0, 255, 4*i))
        
        # this will make each turtle draw one bit of a circle
        bale[i].left(1)
        bale[i].forward(2)
        
        # this will make the turtles do a random walk:
        #bale[i].left(random.randrange(-30, 30))
        #bale[i].forward(random.randrange(10))

    turtle.update()