facelessuser / coloraide

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

Experimental Raytrace now uses OkLCh as default and removes alternatives #423

Closed facelessuser closed 2 months ago

facelessuser commented 2 months ago

Pre-configured oklch-raytrace and lch-raytrace are no longer provided. Users can easily recreate such pre-configured methods and we now document how.

CIELab when gamut mapped tightly, as the ray trace method does, gives very washed out yellows for extreme cases due to the geometry of the space. Oklab does much better in this area. CIELab will give more consistent results at general extremes, while Oklab breaks down near where the visible spectrum ends, especially in the blue region. We will go with the Oklab as more practical colors within the visible spectrum map fairly decently and people coming from CSS will likely prefer similar behavior. The option to use CIELAB, Luv, etc. are readily available for anyone that requires it.

facelessuser commented 2 months ago

@gir-bot lgtm