Skip to main content
100%

HCL Color Picker

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

This example presents an interactive HCL color picker with three horizontal channel strips for hue, chroma, and lightness. Each strip displays a gradient of colors, and the user can drag a marker along any channel to adjust that component, with the current color shown as a white pixel and its predecessor as black. The visualization uses D3 v3 with SVG axes for channel scales and Canvas `createImageData` and `putImageData` to render the per-pixel gradients. The HCL color is converted to RGB via `d3.rgb`, and dragging is handled with `d3.behavior.drag`.

AI-generated description
gpl-3.0 Licensed

Similar vizzes