Field card

File: euclid-i47.html Pattern: colour-as-notation for a fixed truth; geometry you can deform by hand.

The brief that produced it

An homage to Byrne's 1847 Euclid: Proposition I.47 (Pythagoras), made interactive. The one idea is a² + b² = c² shown as areas, not symbols. Drag the right triangle's two legs; the blue and yellow squares on the legs and the red square on the hypotenuse resize, and their areas always satisfy blue + yellow = red. Byrne palette, no letters in the figure (colour is the notation), keyboard-accessible.

Source of truth

The theorem itself — no dataset. Areas are computed from the dragged leg lengths in "units" (pixels ÷ 30), so the readout reads in clean units² (the default is a 3-4-5 triangle → 16 + 9 = 25).

Design choices worth keeping

  • No letters anywhere in the figure. Byrne's radical move was replacing A/B/C with the colours. The blue square is a². The three coloured swatches in the readout below are the only "labels," and they're colours, not glyphs.

  • The triangle is left uncoloured (paper), bounded by the three coloured squares — so the squares read as the figures and the triangle as the relation between them.

  • Two handles, each constrained to one axis (a faint dashed guide shows the travel), with arrow-key support when focused. Continuous redraw — you feel the squares trade area.

  • Honest geometry: the hypotenuse square is a true rotated square on AB, its outward normal computed so it never overlaps the triangle; everything stays inside the viewBox across the full drag range (legs clamped so it can't overflow).

  • Thread-back: "see why it's always true" hands Euclid's proof to the conversation.

What it teaches the studio

A fixed mathematical truth becomes felt when you can deform it and watch the invariant hold. The colour does the explaining; the prose sits below as a caption. This is the template's leg #2 (colour/area as notation) and #4 (drag to understand) in their purest form.