Spirograph Maker
Adjust integer radii and color to redraw the closed curve locally.
A QUICK WALKTHROUGH
How to use this tool
- Set R, r and d.
- Review the live curve or choose a random pattern.
- Download the SVG.
Spirograph Maker
R: 2–200, r: 1–199 with r < R, d: 0–200. The curve follows x=(R-r)cosθ+d cos((R-r)θ/r), y=(R-r)sinθ-d sin((R-r)θ/r). It closes after r/gcd(R,r) turns and uses up to 60,000 line segments.
GOOD TO KNOW
Common questions
Is the output a vector?
Yes. The SVG contains a sampled line path, not a bitmap.