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

Looking at gamut mapping each position in a [361-stop gradient from `oklch(90% .6 250)` to `oklch(40% .3 20)`](https://apps.colorjs.io/gamut-mapping/gradients?from=oklch%2890%25+.6+250%29&to=oklch%2840%25+.3+20%29) (set max DeltaE to 3, to get lots of stops) the timings in that case, sorted from slowest to fastest:

- CSS Rec2020 **21.3ms**
- CSS **17ms**
- Raytrace **12.9ms**
- Scale LH **9.1ms**
- Björn Ottosson **6.4ms**
- Chromium **5.5m**s
- Edge Seeker **3.7ms**
- Clip **2.9ms**

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10579#issuecomment-2944706695 using your GitHub account


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

Received on Thursday, 5 June 2025 14:23:52 UTC