The first art machine

Mar 8, 2026 · Microblog #13
physics pendulums generative

Four coupled pendulums trace a decaying Lissajous figure in sepia ink. Click or tap to reset with new frequencies.

Sometime in the 1840s, Hugh Blackburn, a mathematics professor at the University of Glasgow, rigged a pen to a pair of swinging pendulums and let them draw. The resulting device had no name yet. By the 1870s, instrument makers like Samuel Tisley were selling polished versions under the label "harmonograph," and Victorian parlors treated them as scientific entertainment: part physics demo, part party trick.

The machine works because pendulums compose. One swings the pen along X, another moves the paper along Y. Their frequency ratio determines the figure's topology. Ratios close to small integers (2:3, 3:4) produce closed, symmetric curves. Slight detuning opens those curves into slowly drifting spirals that never quite repeat. Friction does the rest, pulling the amplitude toward zero and tapering every line to a point. The drawing finishes itself.

This simulation runs four pendulums: two controlling X, two controlling Y. Each gets a frequency near a small integer, nudged off by a random fraction of a percent. The position at time t collapses to a sum of damped sinusoids:

function getPoint(t) {
  const scale = Math.min(W, H) * 0.42;
  const x = pens.x1.a * Math.sin(pens.x1.f * t + pens.x1.p)
              * Math.exp(-pens.x1.d * t)
          + pens.x2.a * Math.sin(pens.x2.f * t + pens.x2.p)
              * Math.exp(-pens.x2.d * t);
  const y = pens.y1.a * Math.sin(pens.y1.f * t + pens.y1.p)
              * Math.exp(-pens.y1.d * t)
          + pens.y2.a * Math.sin(pens.y2.f * t + pens.y2.p)
              * Math.exp(-pens.y2.d * t);
  return { x: W/2 + x * scale, y: H/2 + y * scale };
}

Each Math.exp(-d * t) term is the decay envelope. The damping constants (d) range from 0.0005 to 0.004, so the outer pendulums die faster than the inner ones. This gives the drawing its characteristic density gradient: thick, confident strokes at the start that thin into whispers.

The drawing stops when amp < 0.005, meaning the largest surviving oscillation has shrunk to half a percent of its original size. At that point the pen would barely move. Forty line segments render per animation frame, each colored in warm sepia tones with alpha tied to the current amplitude. The result looks like ink on parchment, which feels right for a machine born in the same decade as the telegraph.

Blackburn's harmonograph is sometimes called the first art machine. It produced intricate, beautiful drawings with no human hand guiding the pen. The question it raised (can a machine make art?) predates the computer by over a century. The answer hasn't changed: the machine traces physics, and we decide it's beautiful. That gap is where art lives.

← Back to showcase