Harmonograph

Make harmonograph drawings: the looping, slowly shrinking lines a pen draws when swinging pendulums move it and the paper. Set up to four pendulums, each swinging side to side or in a circle, with its own frequency, phase, swing and damping, or start from one of 14 presets or a random design from a seed number. Watch it draw, then download the whole pen path as one continuous line in an SVG at real size for a pen plotter, a 300 DPI PNG, or a PDF on US Letter or A4. Nothing is uploaded.

100% private — everything runs in your browser. Everything runs in your browser; nothing is uploaded.

100% private — runs in your browser

Print at 100% (Actual size). The SVG is the whole pen path as one unbroken line at the size you typed, for a pen plotter.

Design

Pendulums

Line

Page

Runs in your browser with our own code: nothing you type is uploaded or saved. The designs are worked out from the pendulum formula by our own code. You may use what you make here, including commercially, with no credit needed.

How to make a harmonograph drawing

  1. Pick a preset, or choose Random design and type a seed (the same seed always gives the same design).
  2. Edit the pendulums: what each one swings, its swing, frequency, phase and damping.
  3. Set the drawing time: how many seconds of swing the pen records.
  4. Pick the colour and line width, the size and the paper.
  5. Download the PDF and print at 100% (Actual size), or the one-line SVG for a plotter.

What you can use it for

  • Pen plotter and generative art
  • Physics lessons: damped oscillation and resonance
  • Music lessons: intervals (octave, fifth, fourth) as drawings
  • Posters, cards and wall art
  • Laser engraving and vinyl cutting
  • Planning a real harmonograph build: try settings first

The 14 presets

PresetPendulumsFrequencies (Hz)Damping (per second)Drawing time
Damped circle (decaying spiral, 1:1)2x 1, y 10.02, 0.0270 s
Unison drift (1.000 : 1.005 Hz)2x 1, y 1.0050.02, 0.0270 s
Octave (2:1) with drift2x 1.003, y 0.50.018, 0.01880 s
Fifth (3:2) with drift2x 1.5, y 1.0020.02, 0.0270 s
Fourth (4:3) with drift2x 2.002, y 1.50.025, 0.02560 s
Major third (5:4) with drift2x 2.5, y 2.0030.03, 0.0350 s
Three pendulums (2 on x), near 1:13x 1, x 3.005, y 1.0020.02, 0.04, 0.0270 s
Four pendulums, near unison4x 1, x 1.004, y 1.001, y 0.9980.015, 0.025, 0.015, 0.02580 s
Four pendulums, fifth (3:2)4x 1.5, x 1.502, y 1.001, y 10.02, 0.03, 0.02, 0.0370 s
Rotary + lateral, near 1:13rot 1, x 1.004, y 0.9980.02, 0.02, 0.0270 s
Rotary turning against, near 1:13rot -1, x 1.003, y 1.0010.02, 0.02, 0.0270 s
Rotary 3:13rot 1, x 3.003, y 30.02, 0.03, 0.0360 s
Octave, slow decay2x 1.0015, y 0.50.008, 0.008160 s
Fifth, quick decay2x 1.503, y 10.05, 0.04530 s

Interval names give the frequency ratio: octave 2:1, fifth 3:2, fourth 4:3, major third 5:4. The damped circle is exact: our tests check that its radius is A e^(−d t) at every point.

Damping

Damping dSwing left after 30 sAfter 60 sAfter 120 s
0.005 per second86 %74 %55 %
0.01 per second74 %55 %30 %
0.02 per second55 %30 %9 %
0.04 per second30 %9 %1 %

Swing left = e^(−d t), the same formula the drawing uses.

Pendulum types

TypeWhat it adds
Lateral on xA sin(2π f t + p) e^(−d t) to x (side to side)
Lateral on yThe same to y (up and down)
RotaryA sin(2π f t + p) e^(−d t) to x and A cos(2π f t + p) e^(−d t) to y: a circle that shrinks; a negative frequency turns the other way

What prints

DownloadWhat is in it
PDFThe page at real size, vector: the pen path and a size bar
PNG 300 DPIThe same page as a picture
SVG (one line)Only the pen path, one unbroken line at the size you typed (longest side), for a pen plotter

Every page has a 1 in (or 2 cm) bar at the bottom to check the print is at 100%. For a cutter that needs DXF, use SVG to DXF.

Which tool to use

You wantUse
Damped pendulum drawingsHarmonograph (this page)
Undamped sine-wave figures (a:b ratio)Lissajous Curve
Rolling-wheel curvesSpirograph Generator
A photo turned into thread lines on nailsString Art Generator
A photo turned into one spiral lineSpiral Art Generator

Different machines: the Spirograph Generator rolls a wheel in a ring, the String Art Generator plans a thread path from a photo, and the Spiral Art Generator draws a photo as one spiral line.

More free tools

Curves, patterns and generative art?

Drawing and print tools that run privately in your browser, with no sign-up and no watermark.

See all free tools →

Frequently asked questions

What is a harmonograph?

A drawing machine from the 19th century. Pendulums swing a pen and a table, and as their swing dies away the pen draws loops that slowly shrink towards the centre. Lateral pendulums swing in a straight line; a rotary one, on a gimbal, swings in a circle or ellipse.

Who invented the harmonograph?

Harmonographs appeared in the mid-19th century. Hugh Blackburn, a mathematics professor at the University of Glasgow, is commonly named as the inventor, and the machines were most popular in the 1890s.

What is the formula?

Each lateral pendulum adds A sin(2π f t + p) e^(−d t) to x or to y: A is the swing, f the frequency in swings per second, p the phase and d the damping. A rotary pendulum adds the sine to x and the cosine to y, so it moves in a circle. The pen is at the sum of all the pendulums.

What does damping do?

It makes the swing die away: after t seconds a pendulum swings e^(−d t) as far as at the start. With d = 0.01, it is down to 55 % after a minute. Our tests check that every pendulum peaks at exactly A e^(−d t).

Why are the frequencies slightly off whole ratios?

A real harmonograph is never perfectly tuned. A small drift, like 2.00 and 2.01 swings per second, makes the figure turn slowly as it shrinks, which gives the woven look. With exact ratios the loops lie on top of each other.

What is the seed?

A number that picks a random design. The same seed always gives the same pendulums and the same SVG, byte for byte, so you can share a seed and get the same drawing back.

How is this different from a spirograph?

A spirograph draws a wheel rolling inside a ring, so the curve repeats forever at the same size. A harmonograph adds damped swings, so the figure turns and shrinks inwards and never repeats exactly.

Can I draw it on a pen plotter?

Yes. The SVG download is the curve as one unbroken path (one start point, then straight segments), at the real size you typed, so the pen goes down once and lifts once. For a cutter or CNC program that wants DXF, convert the SVG with our SVG to DXF tool.

Is it free?

Yes. There is no sign-up, no watermark and no limit.

Is anything uploaded?

No. The drawing is worked out by JavaScript in your browser. Nothing you type is sent anywhere or saved when you close the page.