d3.interpolateRgbBasisClosed()

d3.interpolateRgbBasisClosed(colors)

Returns a uniform nonrational B-spline interpolator through the specified array of colors, which are converted to RGB color space. The control points are implicitly repeated such that the resulting spline has cyclical C² continuity when repeated around t in [0,1]; this is useful, for example, to create cyclical color scales. Opacity interpolation is not currently supported. See also d3.interpolateBasisClosed, and see d3-scale-chromatic for examples.

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

Please login to continue.