
# spirals.py

from turtle import Turtle

def spiral(t, sideLen, angle, scaleFactor, minLength):
  # Draw a spiral recursively."""
  if sideLen >= minLength:
    t.forward(sideLen)
    t.left(angle)
    spiral(t, sideLen*scaleFactor, angle,
                 scaleFactor, minLength)

t = Turtle()
t.hideturtle()
t.speed(0)
scr = t.getscreen()
scr.title('Draw Spiral')
# spiral(t, 200, 90, 0.8, 10)
# spiral(t, 200, 72, 0.97, 10) 
# spiral(t, 200, 80, 0.95, 10)
# spiral(t, 200, 121, 0.95, 15) 
spiral(t, 200, 95, 0.93, 10)
scr.exitonclick()
