Voronoï playground : Do you see the path ?
The example reveals emergent path-like structures within a Voronoï tesselation by generating cells whose borders align along a user-drawn route. Viewers click and drag to create a continuous white stroke, and the visualization dynamically seeds limited-distance Voronoi cells around that path, coloring and styling each cell border to suggest a coherent corridor. Built with D3 v4, it uses `d3.drag`, `d3.line`, and a custom `d3.distanceLimitedVoronoi` plugin to recompute cells in real time, with an SVG filter applied for visual saturation.
AI-generated descriptionNo path is visible, only cells !
The idea of this block comes when I look at Voronoï tesselation where (sometimes) pathes emerge, due to the smooth chaining of cells's borders. This is put to its extreme in this block.
Acknowledgments to:
- D3.js (v4)
- blockbuilder.org
- the line drawing part came from Mike Bostock's block: Line Drawing.