Commit a86bdd4
authored
Add a fast path for Ray Trace with OkLCh and linear RGB gamut mapping (#521)
We can't make global optimizations for every combination of perceptual
space and gamut when doing ray trace, but we can provide an optimized
path for the default (OkLCh perceptual space) and linear RGB spaces.
This is the path that CSS would take, and what we originally wrote the
approach for. While even faster approaches may end up making it into
CSS, Ray Trace is more flexible as a default here that handles gamut
mapping with various perceptual spaces, optimizing the default case
can improve general performance.
Resolves #5201 parent 5952f0e commit a86bdd4
4 files changed
Lines changed: 353 additions & 116 deletions
File tree
- coloraide/gamut
- docs/src/markdown/about
- tests
- tools
0 commit comments