projects27

Carceri d'Invenzione

time
2026
team
Personal project
type
Procedural drawing tool, in the browser
built with
Canvas 2D, plain JavaScript; no AI and no network calls

Draw a few simple strokes. The machine reads them as architecture and engraves a plate in the manner of Piranesi’s Imaginary Prisons.

A vertical line becomes a rusticated pier, a horizontal one a bridge with a balustrade and hanging chains, an arc an arch with voussoirs and a receding vault, a run of steps a staircase. Around your sketch the prison imagines the rest: your bay repeats down the hall, bridges join your piers, stairs climb to them, lanterns and chains hang from real soffits. Then time breaks it, and a trembling hand engraves it, line by line, onto aged paper. It uses no AI. Everything is geometry, perspective, seeded noise and hatching, and every plate can be made again from its seed.

The drawing machine: an etched plate of a prison hall with a great arch, piers, a bridge and a barred window, on aged paper, with the Etch, Plants and People buttons beneath
live · runs in your browser · draw with a mouse or pen, then press etch open full screen

what a stroke becomes

vertical line
Rusticated pier with plinth and capital, sometimes an iron ring and chain
horizontal line
Bridge with cornice, balustrade and hanging chains
gentle hump ⌒
Curved bridge whose deck and railing follow the curve
arc ∩
Arch with voussoirs and keystone, a receding barrel vault, sometimes a walkway on top
steps or a diagonal
Staircase with railing, solid to the floor or flying
sagging curve ∪
Chain
wavy drop
Hanging chain with a lantern, hook, weight or ring
closed loop
Barred window: lit above the horizon, a dark cell below it
dot
A tiny gesturing figure

01

From a sketch to a plate

Each stroke is measured for straightness, corners, bulge above or below its chord, wiggle, closure and size, then classified and regularised: piers snap plumb, arcs become true elliptical arches, loops become windows. A drawn outline lives in a picture plane at a depth and is extruded toward the vanishing point, each edge becoming a face, toned by a fixed light from the upper left. You don’t have to draw down to the floor: a pier that stops short is read as standing further back, on the floor line through its foot.

02

Everything has to stand up

Before anything is drawn, every element, yours and imagined, is made to stand up. Piers rest on the floor or a beam, arches spring from what lies under their legs, and stairs start on a surface and arrive on a landing, which is built if it is missing. Bridges are anchored at both ends, or a new pier is raised under the free end. Chains, lanterns and ropes hang from a soffit, and figures stand on floors, bridges and treads. An audit then starts from the floor and the vaults and follows what touches what: anything imagined that is not held up is not built.

Parts are joined the way a builder would join them. Great piers get stairs wound around them, turning on landings corbelled out of their flanks. A beam that meets a pier grows out of it on a corbel, a scrolled console or a timber brace.

03

Time, and the hand

Each element gets its own look from the seed: square, banded or rubble piers, fluted columns or round towers; bridges flat, arched or timber; railings of balusters, wrought iron or rope. After it is built, time breaks it. Breaches cut ragged holes through the walls, tops break off in steps, blocks fall out, cracks branch, water streaks the stone and weeds, shrubs and ivy take root.

No line is ever ruled. Every path wanders off true with slow noise, then is laid down as a chain of short, overlapping strokes, each with its own pressure; contours cross at the corners, and faint construction lines stay visible, as in a real drawing. The marks are replayed in order, so you watch the burin work, and the ink is printed onto procedurally aged paper with grain, foxing and a plate mark.

04

One point, or two

One-point looks straight down the hall. Two-point sees the prison from a corner, like a camera turned sideways: verticals stay vertical, and the depth of the hall runs to a vanishing point on one side. The turn is a plane homography, which keeps straight lines straight, so the prison is built in one-point space and every pen line, fill and clip is carried onto the canvas.

The first sketch etched in two-point perspective: the hall seen from a corner, piers and the arch receding sideways
The same sketch, etched in two-point perspective.