title: Spiral Function for Turtle - how do I make it stop?
body: <p>So, I am trying to make a function to make a spiral in turtle. It seems to be working fine except for that the the function keeps drawing and drawing when I would like it stop drawing when it gets down to one pixel. Any help would be appreciated!</p>
  
  <pre><code>  def spiral( initialLength, angle, multiplier ):
      """uses the csturtle drawing functions to return a spiral that has its first segment of length initialLength and subsequent segments form angles of angle degrees. The multiplier indicate how each segment changes in size from the previous one. 
      input: two integers, initialLength and angle, and a float, multiplier
      """
  
      newLength = initialLength * multiplier
  
      if initialLength == 1 or newLength ==1:
          up()
  
      else:
          forward(initialLength)
          right(angle)
          newLength = initialLength * multiplier
          if newLength == 0:
              up()
          return spiral(newLength,angle, multiplier)
  </code></pre>