Hypotrochoid Spirograph: Ring Gear, Rolling Wheel and Pen Offset (2D)
The same rolling-gear model drawn on a canvas: ring gear, wheel and pen sprites rendered in Blender, a live pen trace, and a plot of the pen distance from the centre that shows the lobes. Equations, closure and area checks are shared with the 3D scene.
A toothed wheel rolls without slipping inside (or outside) a fixed ring gear while a pen in one of its holes draws the curve. Choose the tooth counts and the pen offset and see how the greatest common divisor sets the number of lobes and how many wheel turns are needed before the curve closes. A Blender-built wooden board, gears and pen, with numerical checks of the hypotrochoid and epitrochoid equations built in.
The same rolling-gear model drawn on a canvas: ring gear, wheel and pen sprites rendered in Blender, a live pen trace, and a plot of the pen distance from the centre that shows the lobes. Equations, closure and area checks are shared with the 3D scene.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install