You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, srgb and hsl have the same gamutSpace (srgb).
Should gamut mapping color(display-p3 1 0 0) to srgb and hsl result in the same srgb color when converting the gamut mapped hsl color to srgb?
hsluv is off by quite a bit. Possibly because the hsluv conversion routines don't deal with colors outside the srgb gamut very well?
Gamut checking for all three colors is done in the srgb space but the clipping portion of the algorithms (and maybe other parts) is done in the origin space.
Here's a quick hack of the CSS portion of the toGamut function to do the mapping in gamutSpace and the gamut mapping results:
For example,
srgb
andhsl
have the samegamutSpace
(srgb
).Should gamut mapping
color(display-p3 1 0 0)
tosrgb
andhsl
result in the samesrgb
color when converting the gamut mappedhsl
color tosrgb
?hsluv
is off by quite a bit. Possibly because thehsluv
conversion routines don't deal with colors outside thesrgb
gamut very well?Gamut checking for all three colors is done in the
srgb
space but the clipping portion of the algorithms (and maybe other parts) is done in the origin space.Here's a quick hack of the CSS portion of the
toGamut
function to do the mapping ingamutSpace
and the gamut mapping results:Color notebook code
The text was updated successfully, but these errors were encountered: