Field card
File: truchet-loops.html
Pattern: emergence made traceable on a bounded plate — every curve pre-coloured by
connected component; colour-as-notation for connectivity, plus flip-to-rethread.
Companion: truchet-floor.html takes the same tiling onto an
infinite, pannable, zoomable canvas where curves cannot be pre-coloured.
The brief that produced it
A studio widget for the loveliest thing about a Truchet tiling: each tile is an independent coin-flip between two pairs of quarter-circle arcs, drawn with no knowledge of its neighbours — yet the arcs always close into continuous curves, and no single tile knows which curve it belongs to. The one idea is emergence: order with no plan. Let the reader trace a curve by hovering (every arc of that one curve lights up, the rest recede) and deform the field by flipping a tile (the curves re-thread). Byrne palette, drag-to-understand, in the widget-studio style.
Source of truth
The tiling is generated, not sampled: a 12×8 grid of Smith/Truchet tiles, one fair coin-flip per tile (seeded, so the file opens identically every time). A construction, not a dataset — the honesty is in the topology.
The curves are computed, not eyeballed: a union-find over the grid's edge-midpoints joins the two arcs that meet at each midpoint, so each colour is exactly one connected component of the arc network. Tile-spans in the readout are the true cell-counts.
Honesty check (why the claims are safe)
The headline claim is only emergence — "independent coin-flips are forced to close into continuous curves." That is a theorem: every interior edge-midpoint is the endpoint of exactly two arcs, so the network is 2-regular and therefore a disjoint union of simple paths and closed loops — no loose ends, for any assignment of flips.
What the study deliberately does not claim is a conservation law for flips. The tidier
instinct — "flip one tile and two curves always merge, or one always splits (±1)" — is
false on a finite patch, and the build was reshaped around discovering that: brute force
over 21,653 single flips across 400 random boards gives {−1: 5,405 · 0: 10,593 · +1:
5,655} — re-routes (Δ0) are about half. So the readout reports the honest three outcomes —
merged, split, re-routed — and never asserts a law the data refused.
Design choices worth keeping
Colour is the notation: "these arcs are the same continuous curve." The eye reads the extent of a colour as the reach of one curve — a small ring vs. a serpent across 40+ tiles.
Two gestures, one idea. Hover traces (the curve a tile secretly belongs to); click flips (the curves re-thread). Both serve "no tile knows its loop."
A meaningful default. Opens on ~28 curves whose longest threads ~42 of 96 tiles — already the aha, no interaction required.
Honest geometry. Cubic-Bézier quarter-circles centred on tile corners — neighbours join seamlessly with no sweep-flag guesswork; verified in-browser.
Keyboard parity and an
sr-onlysummary that states the relationship without colour.Thread-back: "why must independent coin-flips always close into loops?" hands the degree argument — and the lineage to Cyril Stanley Smith (1987) and Craig Kaplan's multi-scale Truchet work (the same Kaplan who co-proved the hat) — to the conversation.
What it teaches the studio
A study can be reshaped by its own honesty check: the seductive ±1 headline died on contact
with the data, and the humbler truth underneath — emergence, with an honest three-way outcome —
made a better widget. Paired with its companion truchet-floor.html, it also shows how the same
idea wants a different frame: a bounded plate to pre-colour every loop, or an unbounded floor
to make a curve's fate something you discover.