Spirograph

Hypotrochoids and epitrochoids — curves traced by a point on a rolling circle.

x = (R-r)cos(t) + d·cos((R-r)t/r)