W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2011

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

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 12 May 2011 20:55:01 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1105122054250.19153@ps20323.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 12 May 2011 13:55:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:33 UTC