Spirograph Creation Tool

The Equation:

Epitrochoid: x = (R+r)cos(t) - O cos(((R+r)/r)*t), y = (R+r)sin(t) - O sin(((R+r)/r)*t)
Hypotrochoid: x = (R-r)cos(t) + O cos(((R-r)/r)*t), y = (R-r)sin(t) - O sin(((R-r)/r)*t)

How the Equation Works

A spirograph is a geometric drawing toy composed of interlocking gears that creates intricate mathematical curves, known as hypotrochoids and epitrochoids, by rotating a smaller wheel with a pen hole inside a fixed ring.

This Spirograph Generation Tool uses trigonometric functions to create a continous curve.