Re: [csswg-drafts] [css-color-4] Evaluate static gamut mapping algorithms for oklab/oklch spaces (#10579)

> I omitted Raytrace since it appears to be slower.

It should be noted that you can decrease the raytrace iteration from 4 to 3 and reduce its speed and still likely have pretty good results, though I wouldn't go lower than 3. I'd suspect with high loads that Björn's method would still prove overall faster.

Raytrace is decent as a generic approach for various RGB gamuts as you don't need to hard code color space specific coefficients, but since it sounds like the plan is to just target a single gamut, Rec. 2020, and clip to everything else, that doesn't matter so much and something like like Björn Ottosson's approach is definitely faster, and Edge Seeker even more so if storing a LUT is acceptable.

-- 
GitHub Notification of comment by facelessuser
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10579#issuecomment-2954603597 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 04:34:00 UTC