Image89

Lissajous curve

A Lissajous curve

A Lissajous curve is the path of a point that swings left and right and up and down at the same time, with two different rhythms:

x=sin⁡(at+δ), y=sin⁡(bt)

The frequencies a and b set the number of loops, and the phase δ shifts one swing against the other. When a and b are whole numbers, the curve closes and repeats itself after

0≤t< 2πgcd⁡(a,b)

This is the only figure of Image89 that is not a fractal: it is a smooth line.

History

The American mathematician Nathaniel Bowditch studied these curves in 1815 with a pendulum that swings in two directions, so they are also called Bowditch curves. In 1857 the French physicist Jules Antoine Lissajous used them to make sound visible. He fixed small mirrors to two tuning forks that vibrated at right angles. The two mirrors reflected a beam of light onto a screen. The shape of the light figure showed the ratio of the two pitches.

Interesting facts

How Image89 draws it

Image89 uses a = 3, b = 2 and δ = π/2 by default; the preset allows frequencies from 1 to 32. The curve is approximated by points joined into a closed red line on white. By default their number depends on the image, so that from one point to the next each coordinate changes by at most about two pixels:

N=⌈πR·max⁡(a,b)gcd⁡(a,b)⌉

where R is half the shorter side in pixels, from 256 to 65 536 points. The two-pixel bound does not apply when the calculated count exceeds 65 536. The line is 0.4% of the shorter side wide, but at least one pixel. The curve is fitted without distortion, with a margin of 5% of the shorter side. The preset is in the [types.lissajous] section of the config.

Examples