Nothing borrowed
There is no framework, no library and no build step. The page is static files, served as they are written. It draws its points through its own WebGL renderer, and through a 2D canvas where WebGL cannot be had.
It makes no request to anyone else, at any point, and its security policy forbids one outright: fonts, scripts, styles and images all come from this address or not at all.
One frame, measured
Every drawn layer on the page subscribes to one shared frame loop, so the cost of a frame is measured whole, not by several loops that cannot see each other. A governor watches that measurement over a rolling two seconds and picks one of five quality levels for your device.
- It steps down when the work nears the 16.7 ms budget, or when more than a fifth of the frames arrive late.
- It steps up only after a sustained margin on both, at most three times.
- A level it has had to leave twice is not tried again.
Only what can be seen
Each scene is mounted only when you are near it and drawn only while it is on screen. The loop stops altogether when the tab is hidden or nothing is in view.
Held by tests
Over 400 checks in eight suites, with no test framework: each suite is a script that prints what it measured and fails loudly. They hold the copy, the arithmetic of every scene, the camera’s path, the quality governor and the networks’ exam results. One command runs them all, and the count in the documentation is itself checked against the run.
Without the show
The page still reads with less motion, without WebGL, without scripts, in forced colours, by keyboard and in print. Each of those is a designed state, not an accident.
What went wrong
- A black frame nobody had tested for. Scrolling between two scenes passed through a frame with nothing on it. It only showed in a screen recording on a real machine. One scene now dissolves into the next, and a check holds that frame’s light above a floor.
- The site inside the site went stale. One sphere holds an iPhone showing this site, baked from screenshots. After a rewrite it was still showing the old site, retired lines included. The screenshots are captured again whenever what they show changes.
- Two waters read as two layers. The opening scene once laid a second water under the first screen’s and raised its wave from that. On screen it looked like what it was. Now the same points on the same canvas stand up into the wave.
More
More of my work is on GitHub.
