Lissajous SVG Generator
Create Lissajous figures in SVG adjusting X and Y frequencies, phase and damping, with PNG export for design and educational physics.
Lissajous curves: the elegant math of two perpendicular oscillations
Lissajous curves (or Lissajous figures) were first systematically studied in 1857 by the French physicist Jules Antoine Lissajous, who built an ingenious apparatus of two perpendicular tuning forks with mirrors to project the figures of light onto a screen. The American mathematician Nathaniel Bowditch had described the same family of curves as early as 1815, which is why some textbooks call them Bowditch curves. They became the visual workhorse of oscilloscopes: feed two signals into the X and Y inputs in XY mode and the screen draws the figure in real time β a quick, intuitive way to compare frequencies and phase.
Parametric equations and how the parameters shape the figure
A Lissajous curve is described by two sinusoids on perpendicular axes:
x(t) = A * sin(a * t + Ξ΄)
y(t) = B * sin(b * t)
Three quantities decide the shape: the frequency ratio a:b, the phase difference Ξ΄ and the amplitudes A, B. Some canonical cases:
- 1:1 ratio β circle (Ξ΄ = 90Β°), ellipse (other Ξ΄) or a straight diagonal line (Ξ΄ = 0Β° or 180Β°).
- 1:2 ratio β the classic figure-eight (lemniscate-like) when Ξ΄ = 90Β°.
- 2:3 ratio β three-lobed pretzel.
- 3:5, 5:4, 7:5 β increasingly intricate woven shapes prized for their visual rhythm.
When a/b is rational, the curve closes on itself and is periodic; when irrational, it never closes and densely fills the rectangle [-A, A] Γ [-B, B].
From physics lab to broadcast logos
In the 19th century Lissajous used these figures to tune musical pitches β a phase-locked figure meant identical frequencies. Modern physics labs still use them on oscilloscopes for the same reason. Culturally, the curves leapt off the screen into pop design: the ABC television logo introduced in 1962 was inspired by Lissajous patterns, and the Australian Broadcasting Corporation's "lissajous loop" logo (1965, by Bill Kennard) is literally a 1:3 ratio figure. NASA's NASA TV motion graphics, the visual identity of music software like Reactable, and countless live-coding visuals all borrow the same DNA.
Generating Lissajous SVGs
Programmatically you iterate t over [0, 2Ο * lcm(a, b)], sample 500β2000 points, and emit a single <path>. Variations that liven up the visual:
- Damping β multiply by
e^(-kΒ·t)to mimic a decaying pendulum; popular for "loading" animations. - Amplitude or frequency modulation β slowly vary
Aorawith another sinusoid for organic shapes. - Color along the path β split into many
<path>segments and animate the hue.
FAQ
How do Lissajous curves differ from Spirographs? Both are parametric, but Lissajous uses two independent sinusoids (no circles rolling), while a spirograph is generated by a wheel rolling inside or around another circle. Lissajous figures stay inside a rectangle; spirographs trace roulette curves.
Does the curve always close? Only when the frequency ratio a/b is rational. With an irrational ratio (e.g. a = β2, b = 1) the path is dense and never closes.
Are oscilloscopes still used for this? Yes β analog and digital oscilloscopes still ship with XY mode. Audio engineers use it to detect phase issues between stereo channels.
Why is the math so popular in tattoos and minimalist art? Because a tiny set of integer ratios produces an entire vocabulary of shapes with no irregularities β the curves feel "perfect" without looking sterile.
Related Tools
Handwriting Generator
Convert typed text into an image with handwriting appearance. Useful for adding a personal touch to digital work.
Resume Generator
Fill a simple printable A4 CV from a form with personal data, education and experience.
Favicon Generator
Generate a favicon from text/emoji in all common sizes (16, 32, 48, 64, 192, 512). PNG download.