interpolateRgbBasis function Color interpolation
Returns a uniform nonrational B-spline interpolator through the specified
list of colors
, which are converted to
RGB color space.
Implicit control points are generated such that the interpolator returns
colors
[0] at t = 0 and colors
[colors
.length - 1] at t = 1.
Opacity interpolation is not currently supported. See also
interpolateBasis, and see
d3-scale-chromatic for examples.
Implementation
String Function(num) interpolateRgbBasis(List<Object?> colors) =>
_rgbSpline(interpolateBasis)(colors);