facelessuser / coloraide

A library to aid in using colors
https://facelessuser.github.io/coloraide
MIT License
206 stars 12 forks source link

Should gamut mapping default to ray tracing GMA in the future? #400

Open facelessuser opened 8 months ago

facelessuser commented 8 months ago

The new ray tracing gamut mapping algorithm is looking very promising. It is faster and more accurate. This accuracy does manifest itself a bit in the default gamut mapping algorithm though. Because of the tighter more accurate results, yellow is a bit more washed out when gamut mapping color(display-p3 1 1 0) as an example. This is due to the shape of LCh. The question then would be, do we just move to OkLCh as the default. It does have more of an issue with colors on the fringe of the visible spectrum. As a default, you would get some surprising results for colors that swing outside this region. LCh handles these better. Something to consider.