Skip to main content
100%

Poisson-Disc III

✓ Published0🌍 Public
RRastignac
Last edited Nov 17, 2016
Created on Nov 17, 2016

The visualization renders Van Gogh’s *The Starry Night* as a mosaic of Voronoi cells, with each cell’s fill color sampled from the corresponding pixel of the source image. It uses a Poisson-disc sampling algorithm to place 10,000 points evenly across the canvas, then applies `d3.geom.voronoi` with a clip extent to construct the cells. The image is loaded via an `Image` object and drawn to a 960×500 canvas, where `getImageData` extracts the color for each sample. The code relies on D3 v3 and Canvas 2D API.

AI-generated description

10,000 poisson-disc samples of Van Gogh’s The Starry Night. Compare to uniform random samples.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/22fd67be72552774736d'>Poisson-Disc III</a>

gpl-3.0 Licensed

Similar vizzes