Skip to main content
100%

Cubehelix Color Picker

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

This example presents an interactive Cubehelix color picker with three horizontal channel strips for hue, saturation, and lightness. Each strip renders a gradient swatch on a canvas element with an SVG axis below it, using d3.svg.axis to label the value ranges. The code relies on d3-color’s `cubehelix` and `hsl` functions to convert channel values into displayable colors, drawing the gradient bars programmatically via canvas `getImageData`. The interface allows direct manipulation of each channel to explore the three-dimensional color space.

AI-generated description
gpl-3.0 Licensed

Similar vizzes