Scatter a handful of seed points, then colour every pixel by whichever seed is nearest. Each seed ends up owning a polygonal territory, and every boundary is the perpendicular bisector between two seeds. Russian mathematician Georgy Voronoi formalised it in 1908, though the idea of "nearest-seed" territories is much older — John Snow's 1854 map dividing London by nearest water pump is a famous early example.
This demo recomputes it every frame on a coarse grid by brute-force — checking the distance from every grid point to every seed. In production, with many points, the same diagram is computed far faster as the dual graph of a Delaunay triangulation.
Designers use it for map-style territory splits, organic tile patterns and fractured logo backgrounds. Letting the seeds drift slowly is decoration on its own — the boundaries visibly renegotiate themselves.
When to use
Use it for organic cell divisions, map-style infographics, cellular backgrounds. Switch to a Delaunay-based method once the point count grows.