Resonance
Two damped sine waves, one driving x and one driving y. Their frequency ratio decides the shape — simple ratios close into clean loops, anything else sprawls. Optionally play both frequencies as tones so you can hear the ratio, not just see it.