Fourier Epicycles

Draw any closed shape — a chain of rotating arms, one per frequency, traces it back.

Draw a closed shape here
Paste SVG path (d)