Poisson-Disc
This visualization demonstrates Poisson-disc sampling, a blue-noise distribution pattern that places icons evenly across a canvas while maintaining a minimum distance between them. Using Bridson’s algorithm, the d3.timer function adds 100 new samples per frame, each rendered as an SVG image element that animates from zero to its full size via the .transition() method. The code relies on d3.v4 for timer and transition APIs, with the poissonDiscSampler function handling spatial grid-based rejection sampling to ensure uniform coverage. The icons animate into place, illustrating the algorithm’s progressive point generation in real time.
AI-generated descriptionBased on Jason Davies’ implementation of Bridson’s algorithm. See the related explanation and Mike Bostock's block. Icon comes from here.