Re: [community-group] Legacy color (#137)

> Is it possible to do a lossy conversion from a higher color depth to a lower one?

Yes, this is possible and mostly trivial.

One of the effects of a lower color depth can be banding in gradients.

>  Is it possible to do a lossless conversion from one color space to another for colors where their gamuts overlap?
I'm assuming if a color in space A does not exist in space B's gamut, the conversion would necessarily be lossy. Right?

This is correct and css-wg is working on non normative sections detailing how you might convert out of gamut colors.

https://drafts.csswg.org/css-color-4/#gamut-mapping

-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/137#issuecomment-1166581739 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 26 June 2022 16:35:01 UTC