Color Mesh II
✓ Published0🌍 Public
Mmbostock
Last edited Oct 31, 2015
Created on Jul 3, 2015
This example displays a colorful abstract image made of triangular cells formed by a Delaunay triangulation of a Poisson-disc sample of points. The visualization is rendered as SVG paths in a browser using the D3 v3 library, specifically calling `d3.geom.voronoi` to compute the triangulation. Each triangle is filled and stroked with a color determined by the `d3.lab` color space, which maps the centroid’s distance from the center to a luminance and hue gradient, creating smooth color transitions across the canvas. The underlying point distribution is generated via a custom Poisson-disc sampler, ensuring evenly spaced vertices.
AI-generated descriptionThis version uses a Delaunay triangluation; compare to a Voronoi diagram.