Skip to main content
100%

Lab Color Picker

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 8, 2015

This interactive tool visualizes the CIELAB color space by displaying three horizontal gradient strips, one for each of the L, a, and b channels. Dragging a marker along a strip adjusts that channel’s value, and all three strips update to show the resulting color as a vertical slice through the space. The example uses d3.v3 for scales, axes, and drag behavior, with the gradients rendered to Canvas via `createImageData` and `putImageData`, converting between Lab and RGB using `d3.lab` and `d3.rgb`.

AI-generated description
gpl-3.0 Licensed

Similar vizzes