coloraide icon indicating copy to clipboard operation
coloraide copied to clipboard

Add extended Oklab (if it becomes viable)

Open facelessuser opened this issue 1 year ago • 0 comments

The idea would be to either implement extended Oklab as a separate color space or replace Oklab with this new extended implementation. It may be that in the beginning, Oklab extended should be a separate space.

Extended is not ready and more work would be needed, but if it became viable, this would be useful.

Okhsl and Oksv should continue to be implemented using the non-extended form as the compression/decompression of the LMS breaks the algorithm.

The extended form is not just an extended Oklab, it does alter values in existing gamuts, from sRGB all the way up.

https://github.com/w3c/csswg-drafts/issues/9449#issuecomment-1948512394

If we truly want to move to OkLCh as a gamut mapping default, extended would be the way to go as it fixes the gamut mapping of extreme colors giving sane values for any color space.

facelessuser avatar Feb 16 '24 22:02 facelessuser