Skip to main content
100%

Color Mesh II

✓ Published0🌍 Public
Aajayjayayy
Last edited May 28, 2018
Created on May 28, 2018

A Delaunay triangulation fills the viewport with a mosaic of color, where each triangle’s fill and stroke are derived from the LAB color space based on its centroid’s distance from the center. The point set is generated by a Poisson-disc sampler, ensuring even spacing, and then triangulated using `d3.geom.voronoi`’s `triangles` method. Each polygon is rendered as an SVG path with a computed `d` attribute, producing a smooth, radially symmetric gradient of hues and lightness across the 960×500 canvas.

AI-generated description

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

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/76342abc327062128604'>Color Mesh II</a>

mit Licensed

Similar vizzes