May 2019
Beginner to intermediate
650 pages
14h 50m
English
The Cubehelix color space is an HSL scale designed so that colors are perceived in an increasing scale of intensity. The reds at the end of the scale seem more intense than the greens. This color space was created to display astronomical images.
Use the d3.cubehelix() function to create a Cubehelix color from its components, from another color, or a from a color string, and then use the h, s, and l properties to read or modify individual color components. The following diagram shows the axes of the Cubehelix color space. You can experiment with this color space using the online color picker at bl.ocks.org/mbostock/ba8d75e45794c27168b5:
Read now
Unlock full access