Generative Assets · Guide 191
A chain hanging between two drifting anchors settles — every frame, by nothing but link constraints and gravity — into a·cosh(x/a). The page fits that equation to the live chain, overlays the parabola everyone assumes it is, shades the disagreement, and then flips the whole scene into Gaudí's standing arch. Visit the site.
Catenary is a single-screen study in the "Form" wave: the curve of a hanging chain, treated as a lecture a crypt could give. The audience is anyone who has ever assumed a slack rope is a parabola. The page has one job — to show, honestly and live, that the chain's own shape and the parabola through the same anchors are two different curves, and that inverting one gives you architecture.
The spec's bright chain-gold is held strictly to a line/mark token; the body ink is derived from candle-ink with two darker steps (#C0B398, #877D69 — the last decorative only), so every piece of running text clears 4.5:1 comfortably on the stone.
Gloock carries the display voice — a high-contrast modern serif whose heavy ball terminals read like wrought iron; it sets the wordmark, the readout numerals, and the giant TENSION / COMPRESSION word that swaps at each inversion. JetBrains Mono does everything measured: the promise line, readout labels, legend, and Hooke's anagram — the right register for a page whose centrepiece is a fitted equation.
Verlet chains (canvas 2D). Each chain is 22–38 point masses under position-Verlet integration with fixed 1/60 s steps, 14–26 relaxation iterations per step over its distance constraints, endpoints pinned to anchors that drift on slow incommensurate sine paths. Nothing about the shape is scripted — the catenary emerges from the constraints.
The honest fit. Every frame the page measures the lead chain's true arc length, then solves 2a·sinh(h/2a) = √(L²−v²) for a with Newton's method (the transcendental equation for a catenary through two given anchors with a given length), placing x₀, y₀ from tanh((u₁+u₂)/2) = v/L. The thin gold line drawn over the chain is that analytic curve; the readout's rms residual (typically under 1 px once settled) is the proof the simulation found the equation. The parabola ghost is the quadratic through the same two anchors and the catenary's own lowest point — the fairest possible impostor — and the blue shade fills exactly the region where the two curves disagree, with Δmax read out.
The Gaudí inversion. On a 32-second cycle, gravity's sign eases through a cosine from +1 to −1: the chains swing up through their anchor rail and re-settle as standing arches — Hooke's 1675 anagram played live, tension becoming compression with no change of shape. The fit runs in mirrored coordinates during the arch phase, so the same cosh equation is verified in both worlds. Overlays gate on the fit residual and only fade in once a chain has genuinely settled.
matchMedia gate skips the rAF loop and renders one 900-step pre-settled frame with overlays and readouts (verified: identical screenshots 1.3 s apart, rms 0.16 px, zero console errors).document.hidden, and the cycle clock advances on sim time so a background tab can't skip the flip.Headless Chrome, 7-second settles: zero console errors on both pages, one h1 each, hero visible, 375 px clean, two-frame liveness pass, anchor-drift assert, and the signature drive — force the inversion, assert the chain stands above the rail as an arch and still matches its cosh fit to sub-pixel rms, then revert and assert it hangs again.