facelessuser / coloraide

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

Fix atypical achromatic response cases in ray trace #421

Closed facelessuser closed 6 months ago

facelessuser commented 6 months ago

CAM16, HCT, ZCAM, etc. often have atypical achromatic responses due to adapting luminance and background luminance handling. Ray trace now better handles such cases by averaging the achromatic component values giving an approximate achromatic value in the RGB space that is more appropriate. This prevents cutoffs near white at high luminance levels. On rare occasions MINDE gamut mapping can be a little more accurate in these cases, but differences are imperceptible making the speed boost generally more preferable.

facelessuser commented 6 months ago

@gir-bot lgtm