- From: James Stuckey Weber via GitHub <noreply@w3.org>
- Date: Mon, 09 Jun 2025 02:59:53 +0000
- To: public-css-archive@w3.org
I generated colors in the XYZ space, and for each color outside of Rec2020, I applied the GMA, and then clipped to P3 and sRGB to approximate what color might be displayed. I then calculated average deltas for each channel in OkLCh, taking the absolute value since I was interested in magnitude and not directionality. A drawback is that this obscures how the GMAs behave in different ranges, as well as how much variation there is. | Method | Destination Gamut | ΔL | ΔC | Δh | ΔDelta2000 | |--------|--------|--------|--------|--------|--------| | Edge Seeker | p3 | 0.0004 | 0.3101 | 0.0007 | 17.4262 | | Edge Seeker | srgb | 1.4090 | 0.3329 | 2.2804 | 19.2775 | | Björn Ottosson | p3 | 0.000008 | 0.3101 | 0.00002 | 17.4203 | | Björn Ottosson | srgb | 1.4105 | 0.3328 | 2.2829 | 19.2729 | | Chromium | p3 | 2.3165 | 0.2858 | 3.2774 | 15.8680 | | Chromium | srgb | 3.4980 | 0.3139 | 5.6398 | 18.4112 | | Clipping | p3 | 7.2 | 0.244 | 8.72074 | 16.607 | Scales: * L = 0-100 (So a 1 would be equivalent to 0.01 or 1%) * C = 0-0.4 (Most of the mapped colors had very high chroma to start with, so we're seeing large shifts here, as expected) * h = 0-360 Some notes- * All are improvements over Clipping * Edge Seeker performs well. Given its speed and performance, I would support this being the method for getting to rec2020. * Björn Ottosson performs much better than Edge Seeker when clipping to p3, but the advantage isn't there when clipping to srgb (Although the implementation is using p3 coefficients, and we could use separate sRGB coefficients, I think?). Is this performance boost worth the almost 2x longer compute time? * I omitted Raytrace since it appears to be slower. * The implementations of both Edge Seeker and Björn Ottosson target a displayP3 output in how they are calculated- would we want to target a rec2020 output? I assume that would negatively impact their performance. -- GitHub Notification of comment by jamesnw Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10579#issuecomment-2954505854 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 9 June 2025 02:59:54 UTC