interpolateRgb
Returns an RGB color space interpolator between the two colors a
and b
with a configurable gamma. If the gamma is not specified, it defaults to 1.0.
The colors a
and b
need not be in RGB; they will be converted to RGB using d3.rgb
. The return value of the interpolator is an RGB string.
const interpolateRgb: ColorGammaInterpolationFactory;