[Haskell-cafe] Mini-announce: AC-Color 1.1.3

Andrew Coppin andrewcoppin at btinternet.com
Wed Mar 17 16:26:38 EDT 2010

Yitzchak Gale wrote:
> Andrew Coppin wrote:
>> I just uploaded a new version of the AC-Colour package...
> Thanks for this.
> Your algorithm for scaling brightness is not correct however.
> The RGB values in all popular image formats are not linear.
> They use a gamma transfer function.

My code operates in the linear RGB colourspace. If you want to operate 
on some other colourspace (e.g., sRGB), you're going to need to convert 
from it after you load data, and convert to it before you save data.

(Personally, I've always considered the gamma transfer function to be a 
bug. It only exists due to the faulty design of early CRT systems, and 
it really should have been done away with years ago, but never mind...)

More information about the Haskell-Cafe mailing list