d3.interpolateHcl()

d3.interpolateHcl(a, b)

hcl

Returns an HCL color space interpolator between the two colors a and b. The colors a and b need not be in HCL; they will be converted to HCL using d3.hcl. If either color’s hue or chroma is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string.

doc_D3_Js
2016-11-24 10:26:47
Comments
Leave a Comment

Please login to continue.