facelessuser / coloraide

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

Averaging should be done in linear light #310

Closed facelessuser closed 1 year ago

facelessuser commented 1 year ago

Turns out we should really have linear light as the default for averaging. I guess the current default could be considered a bug, though it is certainly a possible choice.

facelessuser commented 1 year ago

I think reading around, generally linear light is expected. Some approaches use sRGB directly, but using squaring to approximate linear light. While we do not currently support squaring, you can just use linear light directly.

It should be noted that there is nothing wrong with averaging in a perceptual color space, it just may not be what people expect as a default. Since this is configurable, we can just use an expected default and let people choose whatever they want.

facelessuser commented 1 year ago

Fixed in More expected default for color averaging