Skip to content

[css-images-4] Undefined Hue angle when interpolating from neutrals #4928

Closed
@svgeesus

Description

@svgeesus

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions