Projects

Interactive Art

Circuit Studies

October 2026, JavaScript, Canvas 2D

EngineeringPlay
JavaScriptCanvas 2DGenerative Design

Four small sketches that started as decoration for the front page and turned into their own thing. Each one takes a habit from circuit boards, the right-angle trace, the pad, the clock pulse, and lets the cursor bend it. Move across them, pause on them, click them.

01

Rigid to fluid

Eleven traces are routed the way a board would route them: straight runs with 45° jogs. Your cursor's horizontal position sets a single value between rigid and fluid, and every corner is redrawn as an arc whose radius grows with it. As it rises the lines thicken, start to glow, and pick up a slight wobble at the bends, while the vertex dots that mark the hard corners fade out.

The value eases toward the cursor rather than jumping to it, so a fast sweep still melts smoothly. Left alone, it drifts between the two states by itself.

Move left to right.

02

A circuit that grows

A tiny autorouter. Every 45 ms the head takes one step on a 14 px grid, choosing among the eight directions a board allows (straight and 45°) whichever points most nearly at your cursor. It never doubles back, stays inside the board, and slightly prefers to keep going straight, so it lays down clean runs instead of zigzagging.

Fresh copper glows white-hot and cools to the page colour over about a second. Hold the cursor still for half a second and it plants a pad where it stopped; click to drop a larger via.

Move, pause, click.

03

Tempo

A 7 × 9 grid of pads runs on a clock. Every beat sends a ring outward from one point, and each pad and link lights up as the ring passes, fading as it travels. When beats overlap their rings add together, which is where the brightest flashes come from.

Tap to take over the clock. The tempo becomes the average gap between your last few taps (anywhere from about 37 to 214 BPM), and the wave moves to wherever you tapped. Pause for two seconds and the next tap starts a new count. The readout in the corner shows the current BPM.

Click in rhythm.

04

Signal with afterimage

Two signals start in opposite corners of a lattice whose diagonals alternate direction, cell by cell. At every node each one picks the next neighbour closest to your cursor, with a little randomness so the two don't move in lockstep, and never turns straight back the way it came.

Every edge a signal crosses is lit at full strength and then decays exponentially, so the path stays on screen as an afterimage, the same idea as the lights on a dancer's joints in Tracing Light. Left alone, each signal chases its own wandering target.

Move around.

All projects