d3.cubehelix(h, s, l[, opacity])
d3.cubehelix(specifier)
d3.cubehelix(color)
Constructs a new Cubehelix color. The channel values are exposed as h
, s
and l
properties on the returned instance. Use the Cubehelix color picker to explore this color space.
If h, s and l are specified, these represent the channel values of the returned color; an opacity may also be specified. If a CSS Color Module Level 3 specifier string is specified, it is parsed and then converted to the Cubehelix color space. See color for examples. If a color instance is specified, it is converted to the RGB color space using color.rgb and then converted to Cubehelix. (Colors already in the Cubehelix color space skip the conversion to RGB.)
Please login to continue.