[whatwg] Canvas rendering should be done in linear color space (gamma 1) and the result displayed in sRGB color space (approximately gamma 2.2)

Ian Hickson ian at hixie.ch
Thu May 12 13:55:01 PDT 2011


On Thu, 14 Apr 2011, Hugues De Keyzer wrote:
> 
> For the moment, it seems that drawing on canvas is done without 
> accounting for gamma, actually making wrong assumptions, like a^x + b^x 
> = (a + b)^x. This gives incorrect results, although they are not always 
> obvious to perceive. For example, all shapes and font antialiasing is 
> incorrect, as are gradients. I propose to address this issue by ensuring 
> that all drawing operations are done in linear space.

The spec is just going to describe what browsers do as far as this goes. 
If you can convince the browser vendors to change, I'm happy to change the 
spec.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list