d3.interpolateRgb(a, b)
Or, with a corrected gamma of 2.2:
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.
Please login to continue.