Function drawApproximateCircle

  • Approximate a circle by drawing a many-sided regular polygon, using only left-hand turns, and restoring the turtle's original heading and position after the drawing is complete.

    Parameters

    • turtle: Turtle

      the turtle context

    • radius: number

      radius of the circle circumscribed around the polygon, must be > 0

    • numSides: number

      number of sides of the polygon to draw, must be >= 10

    Returns void

Generated using TypeDoc