Skip to main content
Preparing workspace

Lissajous Curve Generator

Lissajous curve generator: drag a ratio pad, pick a colour gradient, hear the two frequencies as tones, animate the pattern and download PNG or SVG.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Lissajous Curve Generator

Plot Lissajous curves from two sine waves, animate the phase, compare patterns and download PNG or SVG.

A Lissajous curve is the path you get when two sine waves at right angles are plotted against each other, the figure an oscilloscope draws in X-Y mode. This free Lissajous curve generator lets you set each wave’s frequency, phase and amplitude, watch the pattern animate, compare two curves and download the result as PNG or SVG. A draggable ratio pad, gradient colours and an optional sound mode that plays the two frequencies as tones turn it into a small studio.

How to use Lissajous Curve Generator

  1. Pick a starting curve from the gallery or the Pattern preset menu, such as Classic 3:2, Infinity Loop or Five Petal.

  2. Set the X frequency and Y frequency from 1 to 12. Their reduced ratio decides the lobes: 3:2 touches the top edge twice and the side edges three times.

  3. Drag Phase from 0 to 360 degrees to slide one wave against the other, then adjust X and Y amplitude, Rotation and Signal decay to shape the curve.

  4. Press Animate to drift the phase at 24 degrees per second by default, press Random for a new combination, or press Back to return to the previous curve.

  5. Drag the ratio pad to jump between frequency pairs, pick a colour gradient, and press Play tones if you want to hear the interval.

  6. Press Download PNG for a 1200 by 1200 pixel image, Download SVG for a vector file, Full screen for a bigger canvas, or Share link to copy an address that reopens the same curve.

Why use Lissajous Curve Generator

  • Ratio pad

    Drag one point on a 12 by 12 grid to set X and Y frequency at once, or focus it and use the arrow keys (Shift moves by 3). The sliders follow, and the interval name appears beside it.

  • Gradient line colours

    Choose Aurora, Sunset, Ember or Meadow to sweep a colour along the curve. The same gradient is used in the preview, the PNG and the SVG, in light and dark.

  • Hear the ratio

    Press Play tones to hear the two frequencies as sine tones, X on the left speaker and Y on the right, with pitch and volume controls. It is off until you press it.

  • Ten live controls

    X frequency, Y frequency, phase, rotation, both amplitudes, trace samples, animation speed, phase drift and signal decay each redraw the curve as you move them.

  • 17 curve presets

    Start from Classic 3:2, Infinity Loop, Five Petal, Oscilloscope or Rotated Ribbon, or from a circle, pretzel, woven knot, dense lattice, fading spiral and more, each shown as a picture in the gallery.

  • Compare two curves

    Overlay a preset or one of your saved curves as a dashed outline and watch how your solid curve moves against it, with both ratios and lobe counts side by side.

  • Daily challenge and experiments

    Match a new hidden curve every day, or work through guided experiments on frequency, phase and amplitude. A step is ticked only when your curve is really in that state.

  • Saved patterns and share links

    Save favorite curves into your own collections in this browser, and copy a link that carries every setting so the same curve opens from that address.

  • Ratio, lobes and plain-English notes

    The stats panel reduces your frequencies by their greatest common divisor, shows the lobe count, and explains in words what each control is doing to the curve you see.

The math behind the Lissajous curve

A Lissajous curve is a parametric curve: x = Ax·sin(fx·t + φ) and y = Ay·sin(fy·t), with t running from 0 to 2π. Here fx and fy are the X and Y frequencies, Ax and Ay are the amplitudes, and φ is the phase, the head start the X wave has over the Y wave.

The shape depends mostly on the ratio fx:fy. This generator uses whole-number frequencies from 1 to 12, so every curve closes after one pass unless signal decay is above 0. The reduced ratio sets the lobe count: the curve touches the top and bottom edges as many times as the reduced Y value, and the side edges as many times as the reduced X value.

When the two frequencies are equal, phase alone decides the shape: 0° or 180° gives a straight line, 90° or 270° gives a circle when the amplitudes match, and angles in between give slanted ellipses. Rotation turns the finished curve, and signal decay shrinks it along the trace so it spirals inward instead of closing.

Lissajous figures on an oscilloscope

In X-Y mode an oscilloscope plots one input signal against the other instead of against time. With two sine waves the trace is a Lissajous figure, so its shape shows the frequency ratio and the phase difference at a glance, and counting where it touches the top and side edges gives the ratio.

This page is a simulation for learning and previewing; it does not read a real instrument. Try the Oscilloscope preset (7:6 with a little decay), or set equal frequencies and slide the phase to see the line, ellipse and circle sequence a scope shows as two same-frequency signals drift apart in phase.

Common Lissajous ratios and what they draw

Settings with the matching preset where there is one; the interval is how the ratio sounds in sound mode. Lobes follow the Lobes stat: edge touches along the top, then along each side.
X:YPhaseShapeLobesPreset
1:190°Circle (equal amplitudes)1 x 1Circle 1:1
1:10°Straight line1 x 1Set by hand
1:20°Figure-eight on its side (infinity sign)2 x 1Infinity Loop
2:10°Upright figure-eight1 x 2Upright Eight
3:290°Classic looped curve2 x 3Classic 3:2
5:490°Woven curve, five lobes down each side4 x 5Five Petal
7:635°Fading trace with decay 0.186 x 7Oscilloscope

Frequencies that share a factor, such as 6:4, draw the reduced 3:2 curve again, and the stats panel reduces them for you.

Common use cases

  • Hearing why a 3:2 curve and a perfect fifth belong together: the sound mode plays X on the left and Y on the right at the same ratio
  • Sweeping through ratios quickly on a 12 by 12 pad to find a curve you like, instead of moving two sliders back and forth
  • Showing students how frequency ratio and phase difference shape an oscilloscope X-Y trace, using sliders instead of a signal generator
  • Previewing what a ratio such as 3:2, 5:4 or 7:6 looks like before setting up an experiment on the bench
  • Comparing musical interval ratios such as 2:1 (octave), 3:2 (fifth) and 4:3 (fourth) as pictures
  • Designing generative line art, then exporting a PNG for a wallpaper or an SVG for a vector editor
  • Practicing pattern recognition with the daily challenge and the guided experiments

Frequently asked questions

Can I hear a Lissajous curve?

Yes, optionally. Press Play tones under the ratio pad and the page plays two sine waves through Web Audio, one for X on the left speaker and one for Y on the right. The lower of the two sounds at the Pitch you choose (80 to 440 Hz) and the other at the reduced ratio above it, so 3:2 at 130 Hz plays 130 and 195 Hz. Sound never starts by itself, and Stop tones ends it.

Link to answer
What does the ratio pad do?

It is a 12 by 12 grid where the horizontal position is the X frequency and the vertical position is the Y frequency, both from 1 to 12. Dragging or pressing an arrow key changes both sliders together and redraws the curve. Dots on the diagonal mark equal frequencies, which draw circles, ellipses and lines.

Link to answer
Which musical interval is my ratio?

The page names common just-intonation intervals for the reduced ratio: 2:1 octave, 3:2 perfect fifth, 4:3 perfect fourth, 5:4 major third, 6:5 minor third and a few more. Ratios without a common name, such as 7:9, say so instead of guessing.

Link to answer
Do the colour gradients show up in the downloads?

Yes. With a gradient chosen, the SVG is cut into 48 short coloured runs along the curve and the PNG is drawn from that SVG, so both match the preview. Solid line keeps the single-colour files, and Transparent background in Appearance still applies.

Link to answer
Does the page respect reduced motion?

If your device asks for reduced motion, the curve is drawn once and does not move when you press Animate. Everything else, including the sliders, the pad and the downloads, works as usual.

Link to answer
What is a Lissajous curve?

A Lissajous curve, also called a Lissajous figure or Lissajous pattern, is the path traced by a point whose x position follows one sine wave and whose y position follows another. This generator draws x = Ax·sin(fx·t + φ) and y = Ay·sin(fy·t) for t from 0 to 2π, so the shape is set by the two frequencies, the phase and the two amplitudes.

Link to answer
How do I make a figure-eight or a circle?

For a figure-eight, set X frequency to 1, Y frequency to 2 and phase to 0°, which is the Infinity Loop preset. For a circle, choose the Circle 1:1 preset, or set both frequencies to 1, phase to 90° and keep the two amplitudes equal.

Link to answer
How many lobes will my curve have?

Divide both frequencies by their greatest common divisor. The curve touches the top and bottom edges as many times as the reduced Y value, and the left and right edges as many times as the reduced X value. The Lobes stat shows this for you: 3:2 reads 2 x 3, and 6 and 4 reduce to the same 3:2.

Link to answer
What does the phase control do?

Phase moves the X wave ahead of the Y wave, from 0 to 360 degrees. With equal frequencies it turns a straight line (0° or 180°) into a slanted ellipse, and into a circle at 90° when the amplitudes match. With other ratios it slides the loops across each other, and 180° mirrors the curve left to right.

Link to answer
Can I animate a Lissajous curve?

Yes. Press Animate and the phase advances at the Phase drift rate, 24 degrees per second by default and adjustable from 0 to 120, scaled by Animation speed from 0.1x to 3x. A dot travels along the curve while it runs. Pause stops it, and Reset returns to the last preset you chose.

Link to answer
How do I save, share or download a pattern?

Save keeps the current curve in your browser’s local storage, where you can sort curves into your own collections. Share link copies an address that stores every setting and reopens the same curve. Download PNG gives a 1200 by 1200 pixel image and Download SVG a vector file, both drawn as set, without animation drift, in the current theme colors.

Link to answer
What is the daily pattern challenge?

Each calendar day has one hidden curve, the same on every device for that date. Start the challenge to see it as a dashed outline on the canvas, then tune X frequency, Y frequency and phase until your curve covers it. Solved days and your streak are counted in your own browser only.

Link to answer
Is the Lissajous curve generator free?

Yes, it is free to use and runs in your browser. Saved patterns, your daily streak and your experiment progress are kept in your browser’s local storage on this device, so clearing site data or switching browsers starts them fresh.

Link to answer

Embed this tool on your site

Add the Lissajous Curve Generator widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.

<iframe src="https://www.altftool.com/embed/widget/lissajous-pattern-generator"
  title="Lissajous Curve Generator — free AltFTool widget"
  width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
  loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/lissajous-pattern-generator?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>

Browse all embeddable widgets →