Voronoi Diagram Generator
Generate Voronoi diagrams in the browser. Control seed, cell count, distance metric (Euclidean, Manhattan, Chebyshev), colour and resolution, then export a PNG.
48 cells · 384×384 px · seed 20240518
What is a Voronoi diagram?
A Voronoi diagram partitions a plane into regions based on a set of seed points (or “sites”). Every region — a Voronoi cell — contains all the points that are closer to its site than to any other site. The result is a mosaic of convex polygons that tile the plane with no gaps or overlaps.
The structure is named after Georgy Voronoy (1908), though the idea goes back to Descartes and was used by John Snow in 1854 to trace a cholera outbreak to a single water pump. Its dual graph is the Delaunay triangulation, which connects sites whose cells share an edge.
Distance metrics
“Closest” depends on how you measure distance. This generator offers three metrics, each producing visibly different cell shapes:
- Euclidean: ordinary straight-line distance. Produces the classic straight-edged convex polygons.
- Manhattan (taxicab): the sum of horizontal and vertical distance. Cell boundaries bend at 45°, giving a blocky, circuit-board look.
- Chebyshev (chessboard): the larger of the horizontal or vertical distance. Yields square-ish, axis-aligned regions.
Where Voronoi diagrams are used
Science & engineering
Cellular structures in biology, crystal grain boundaries, mesh generation, nearest-facility planning, and spatial interpolation (natural-neighbour).Graphics & games
Procedural textures (cracked mud, scales, stained glass), shattering and destruction effects, stylised low-poly art, and region maps for strategy games.Tips for good results
Fewer cells (10–30) read as bold abstract panels; hundreds of cells look like organic tissue or cracked glaze. Turn edges on with the mono palette for a clean wireframe-style tessellation, or use pastel with edges off for a soft poster background. The exported PNG drops straight into a design tool or game engine as a texture or region mask. The same seed always reproduces the exact same diagram.