Skip to main content
100%

Color Mesh

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jul 3, 2015

A Voronoi diagram partitions a 960 by 500 canvas into cells, each filled with a color derived from its sample point's distance from the center using the CIELAB color space. The samples are generated via a Poisson-disc sampling algorithm to ensure even spacing. The visualization renders as an SVG using `d3.geom.voronoi` with clipped extents, and each cell's fill and stroke are set by the `d3.lab` color function. The code builds upon a provided `poissonDiscSampler` implementation.

AI-generated description

This version uses a Voronoi diagram; compare to a Delaunay triangluation.

gpl-3.0 Licensed

Similar vizzes