The geometry
Every pattern on the site comes out of one TypeScript module with no dependencies and no access to the DOM. It builds an edge-to-edge tiling of regular polygons, then applies Hankin’s polygons-in-contact construction: two lines from every edge midpoint at a fixed contact angle, each running until it meets another line.
The subtlety is in "until they meet". The lines grow at the same time, so a line is stopped only where it runs into ink that is already on the page — not wherever it happens to cross another line’s eventual path. Getting that wrong collapses the pattern into a few marks around each midpoint. The generator resolves it by sweeping candidate stops in distance order.
A full-screen pattern is a few thousand lines and takes about ten milliseconds to generate.