R - raidus of large circle
r - raidus of small circle
d - distance from the center of the small circle to the drawing point
θ - angle of rotation
Spirograph Formula Spirograph (Wikipedia) Spirograph