'''
Created on Sep 2, 2013

@author: Robert Duvall
'''
def square(snap):
    ''' 
    draw a square of fixed size
    '''
    snap.forward(150) 
    snap.left(90) 
    snap.forward(150)
    snap.left(90) 
    snap.forward(150) 
    snap.left(90) 
    snap.forward(150)
    snap.left(90) 

def circle (yurtle, size):
    '''
    draw a circle with the given size
    ''' 
    for steps in range(360):
        yurtle.forward(size)
        yurtle.left(1)


import turtle               # use the turtles library
wn = turtle.Screen()        # creates a graphics window

# create a variety of turtles
alex = turtle.Turtle()
alex.speed(5)               # moderate animation speed
mike = turtle.Turtle()
mike.speed(10)              # fast animation speed
audrey = turtle.Turtle()
audrey.speed(0)             # very fast, but still some delay

# draw circles of several sizes
circle(alex, 0.1)
circle(mike, 1)
circle(audrey, 4)

# draw a flower of circles
for count in range(36):
    circle(mike, 1)
    mike.left(10)

# important within Eclipse, wait until I am ready before closing the screen
wn.exitonclick()
