Lissajous Curve
✓ Published0🌍 Public
Aalexmacy
Last edited Jun 9, 2017
Created on May 10, 2017
A Lissajous curve is drawn on a canvas as a continuous, animated line whose shape changes based on two frequency parameters, a and b, adjustable via sliders. A checkbox enables a slow phase rotation, causing the curve to evolve over time. The visualization uses the Canvas 2D API with `requestAnimationFrame` to redraw the curve each frame, calculating points from sine functions of the scaled parameters and an offset. The rendering clears the canvas with `fillRect` and strokes the path with a thin line, showing the parametric relationship between the two frequencies.
AI-generated descriptionmit Licensed