Assignment 5 — Fancy Spirograph

Legend — Controls

  • R (Outer Radius): The radius of the fixed outer circle.
  • r (Inner Radius): The radius of the rolling circle (must be smaller than R).
  • O (Offset): The distance from the center of the rolling circle to the drawing point.
  • Speed: Controls the drawing speed. A smaller number makes the spirograph draw faster, while a larger number slows it down.