Skip to main content
100%

Colorspaces

✓ Published0🌍 Public
AAjayyy
Last edited Mar 6, 2019
Created on Mar 6, 2019

This visualization uses 500×500 colored pixels to represent the HCL color space across a canvas. It plots hue along the horizontal axis and lightness along the vertical axis, with chroma fixed at 100, showing the full gamut of colors as a smooth, continuous gradient. The code iterates through each pixel coordinate, calling `d3.hcl` from the d3-color library to generate the corresponding color, and draws it on a Canvas element via `d3.range` loops. The example relies on D3 v4 alpha and the d3-scale-chromatic module to provide the color interpolation.

AI-generated description
mit Licensed

Similar vizzes