Uncommon Math
An interactive book on the mathematics behind 195 unusual web demos, with 25 chapters, 113 runnable sketches and a map of every demo.
In early access for subscribers until 22 November 2026. Subscribe to run it now.
Subscribe →An interactive book, not a tool. It explains the mathematics, algorithms and techniques behind 195 stylistically unusual web demos, the ones collected on webdev.teknium.io, from dithered globes and liquid glass to braille charts, split-flap reels and Winamp. Each chapter derives the formulas the libraries actually run, and a bench beside the text runs small sketches of them.
- 25 chapters in eight parts: foundations (spaces, randomness, easing), fields and shapes (noise, SDFs and raymarching, curves, globes, Voronoi), image and colour (palettes, dithering and halftone, text-mode graphics, filters, CRT simulation), light, dynamics (springs, particles, fluids), marks and type, sound, and machines and the page.
- 113 runnable sketches: each chapter has four or five. You can pause, restart and drag their parameters, or edit the source and run it again.
- Math and figures: formulas typeset with KaTeX and about seven SVG figures per chapter, plus key points and further reading at the end of each chapter.
- 195 demos, mapped: every demo has a card with its library, framework, install line, licence and a link to the live demo. The Demo atlas appendix sorts them into the site's 20 sections, each with the chapter that explains it.
- Toward domain APIs: the second appendix merges the small vocabularies each chapter proposes into one layered library design.
- Search the whole book from the contents pane. The browser remembers the chapter you were reading and your edits to the sketches.
The demos and their libraries belong to their authors (most are MIT or Apache-2.0, and each card names its licence). The live demos are on webdev.teknium.io. Formulas are rendered with KaTeX.