Skip to main content
100%

GO! Logo

✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 9, 2017
Created on Mar 9, 2017

This example renders the IFRC GO logo as a field of colored circles using Mitchell’s best-candidate algorithm. It shows a dense packing of red-hued circles that together form the logo’s shape, with colors varying via `d3.interpolateReds`. The scene is drawn on a Canvas element, and the algorithm places each circle by rejecting random candidates outside the logo’s path, checked with `context.isPointInPath`, while a d3 quadtree enforces spacing. The animation runs for 20 seconds, adding circles gradually via a `d3.timer`.

AI-generated description

Visualising the IFRC Go Logo using the Mitchell’s best-candidate algorithm to place the circles.

Forked from <a href='http://bl.ocks.org/philipcdavis/'>philipcdavis</a>'s block: <a href='http://bl.ocks.org/philipcdavis/86080a7d3d658f4e1ee3953410edd368'>Mitchell's Best Candidate Bounded</a>, which in turn is based on Mike Bostock's example.

Mike Bostock's description: "Mitchell’s best-candidate algorithm generates a new random sample by creating k candidate samples and picking the best of k. Here the “best” sample is defined as the sample that is farthest away from previous samples. The algorithm approximates Poisson-disc sampling, producing a much more natural appearance (better blue noise spectral characteristics) than uniform random sampling."

forked from <a href='http://bl.ocks.org/renecnielsen/'>renecnielsen</a>'s block: <a href='http://bl.ocks.org/renecnielsen/a4b9412bedb5d5ac4165423acb61d648'>Go Logo - Mitchell's Best Candidate Bounded</a>

mit Licensed

Similar vizzes