Lissajous figures

This simulation shows the superposition of two perpendicular harmonic oscillations. We have
x = A1 cos(ω1 t)
in the horizontal direction and
y = A2 cos(ω2 t + φ)
in the vertical.
Above one can see the evolution of the phasor for the horizontal oscillation and on the left the one for the vertical motion.