Re:Wide Gamut Color in CSS with Display-P3
by TazeTSchnitzel on Monday March 02, 2020 @06:01PM
(#22470023)
> It's still not the full spectrum humans can see
In case anyone wonders why colour spaces don't typically try to cover the full spectrum, there's two problems. One is that it may be difficult to reproduce consistently, but the other problem is that it's not a neat triangle, so to represent it completely as RGB you would have large regions of undefined space.
Re:Wide Gamut Color in CSS with Display-P3
by klodolph on Tuesday March 03, 2020 @01:12AM
(#22472246)
Another issue is that as you increase the gamut, you decrease precision. So you sometimes see wide gamuts like scRGB only used with higher precision images.
Re:Wide Gamut Color in CSS with Display-P3
by jfkebwjsbx on Tuesday March 03, 2020 @02:45AM
(#22472624)
I don’t see that as a problem. The color would be undefined for humans, but they would still be colors. It would make sense to have them if only to be able to perform operations on them and retain quality (like working with HDR/raw images even if almost everybody will see them in sRGB).
Re:Wide Gamut Color in CSS with Display-P3
by jfkebwjsbx on Tuesday March 03, 2020 @02:49AM
(#22472643)
I should have said floats, yeah. GPUs shaders work in many cases with 32-bit floats per channel in linear space, right? I don’t see why browsers couldn’t support colors with that precision considering they may be rendering with the GPU anyway (perhaps with another profile, yes).
Browsers could clamp them to sRGB on parsing for the moment and add proper functionality later.
Display-P3 uses points in CIE xyz space for its RGB channels that are farther apart than sRGB, allowing it to express more hues, which sRGB monitors and colours cannot. It's still not the full spectrum humans can see, but it's much better.
(1) technically you can, if you allow channel values to be negative, but that breaks compositing.