SPIROGRAPH

Hypotrochoid / Epitrochoid

x = (R−r)cos(t) + d·cos((R−r)/r·t)
y = (R−r)sin(t) − d·sin((R−r)/r·t)