2d-voronoi-experiments
2d-voronoi-experiments copied to clipboard
Visual experiments exploring 2D voronoi diagrams for simple diatom/radiolaria patterns.
Series of visual experiments exploring Voronoi diagrams using JavaScript
Inspiration
- Ornaments in a Box series by Mario Klingemann
Packages used
- d3-delaunay for fast, robust Voronoi diagram generation.
-
p5.js for canvas drawing and miscellaneous helper functions (like
lerp
andmap
). - Webpack for modern JS (ES6) syntax, code modularization, bundling, and serving locally.
- dat.GUI for a parametric UI
Key commands
Key | Action |
---|---|
r |
Reset sketch |
i |
Invert colors |
p |
Toggle visibility of points |
b |
Toggle blur effect |
Install notes
- Run
npm install
- Run
npm run serve