From reel 188: “How does a spirograph draw THAT?”
A spirograph that draws live
A toothed wheel rolling inside a toothed ring, drawing as it goes. Pick the teeth and the pen hole and watch the pattern close: the loops always come out as ring ÷ gcd(ring, wheel).
Drag the wheel round the ring, or press play. Pick the ring, the wheel's teeth, the pen hole and the speed; every change starts a new colour.
Open full screenMake your own
Ask Doodle once:
“Doodle, draw me a spirograph: a 36-tooth wheel inside a 96-tooth ring, pen hole about halfway out.”
Doodle works out the curve in a short Python script and sketches it on a Doodle Studio canvas as a freehand line you can draw on and export.
Teeth stand in for radii (same tooth size on the ring and the wheel). Real speed in the reel is about one lap every 4 seconds.