Field card
File: meet-in-the-middle.html
Pattern: the predictability of periodic tiling — order so determined that two
builders meet perfectly, and the only chaos is human error. Drag-to-break.
The brief that produced it
Visualise this beat of the thread (message 2): a periodic floor is "completely predictable… you always know where the next element goes," so two people tiling from opposite walls of a cathedral meet perfectly in the middle — but miscalculate the spacing and you get "perfect repeating patterns from both sides, then suddenly chaos in the middle." The one idea: periodic = determined everywhere, so the seam is invisible; the only way to break it is a human miscalculation. Let the reader introduce the miscalculation and watch a fault open. Byrne palette, drag-to-understand.
This is the companion to find-the-repeat.html: that one shows
periodicity as translational symmetry (a shift maps the tiling onto itself); this one
shows periodicity as predictability (the pattern is fixed in advance, so independent
constructions agree). Same property, two felt experiences — different article beats.
Source of truth
A generated hexagonal floor (flat-top hexes) — the cleanest periodic tiling that reads instantly as a game board (the thread's Catan/board-game framing). Hexagons also nod to the "why squares or hexagons?" opening. The Seville reference is the rhombitrihexagonal [3.4.6.4] floor; hexagons are the legible stand-in (and [3.4.6.4] returns later as the Hat's own kite grid — a thread to pull on).
Alignment is honest geometry: the hex centres form a triangular lattice with
primitive vectors u = (1.5s, √3/2·s) and w = (1.5s, −√3/2·s). The two halves "agree"
iff the right half's offset is an integer combination of u and w (residual < 0.18·s).
So the seam is invisible at offset zero — and, as a quiet curio, also at an exact
whole-cell step. Every other offset genuinely breaks the tiling.
Design choices worth keeping
Open on the aha that isn't the interaction. The default is the seamless floor — "the two halves meet perfectly, the seam is invisible." The reader's job is to break a working thing, which lands the point ("the only chaos is human") harder than building one up.
The fault is shown, not stated. Slide the right half and gaps + overlapping tiles appear down the centre; overlapping (colliding) hexes tint red — the "chaos in the middle" made literal. The dashed centre line and the two wall markers frame the cathedral metaphor without a word.
One handle, not a greedy hit-area. Drag is grabbed by the blue grip only (an early prototype let you grab the whole right half, which a stray pointer could nudge on load — the default must reliably open seamless). Arrow keys nudge; Home resets to true.
Drift named in tiles, not pixels. The readout says "a miscalculation of 0.37 of a tile," which is the language of the story (a spacing error), not screen units.
Thread-back: "why is a periodic tiling this predictable?" hands the deeper point (the rule fixes every tile in advance — exactly what aperiodic monotiles give up) to the conversation.
What it teaches the studio
A property becomes felt when the reader can destroy it on purpose. "Predictable" is abstract; a fault you opened with your own hand is not. The widget never says "boring" — it shows that the predictability is a kind of perfection, and that the only disorder a periodic floor admits is the one you introduce. That sets up the real question of the article: is there a shape whose form alone refuses to be this predictable?