Closed
Description
Edit: skip to here to see the interaction with gradient stop interpolation
Noticed by Mike Bostock in the context of D3, but applicable to the color modification functions in Color5, too:
When you interpolate two colors in HCL colorspace, if one of the colors has undefined chroma or hue, the interpolator uses the chroma or hue from the opposite color. This can sometimes result in out-of-gamut colors that cannot be displayed in RGB colorspace. You may therefore wish to use Lab colorspace instead, or to specify the chroma explicitly to disable inheritance.
There are lots of helpful examples