Skip to main content
100%

Poisson-Disc

✓ Published0🌍 Public
LLuisSevillano
Last edited Oct 30, 2017
Created on Jun 20, 2017

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 description

Based on Jason Davies’ implementation of Bridson’s algorithm. See the related explanation and Mike Bostock's block. Icon comes from here.

gpl-3.0 Licensed

Similar vizzes