A spirograph traces curves called trochoids by rolling a wheel inside or outside a fixed ring. The pen draws the pattern. In 3D mode, a sinusoidal z-component lifts the curve through space. Drag the canvas to orbit. The ratio R/r determines the symmetry.
An experiment by Haza. Shared as is, no updates promised. Source on GitHub, MIT license.