Poisson-Disc IV
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 15, 2014
This example generates a set of points using a Poisson-disc sampling algorithm and renders them as a clipped Voronoi diagram. The SVG paths are filled with a color mapped from each polygon’s area using a cubehelix color scale, creating a smooth gradient across the canvas. The code uses d3.geom.voronoi for the diagram, d3.scale.cubehelix for coloring, and d3.svg for rendering. The Poisson-disc sampler is based on Jason Davies’ implementation, with a fixed radius of 5.68 pixels.
AI-generated descriptiongpl-3.0 Licensed