W3C home > Mailing lists > Public > whatwg@whatwg.org > April 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: Hugues De Keyzer <whatwg@hugues.info>
Date: Thu, 14 Apr 2011 23:11:15 +0200
Message-ID: <BANLkTi=Gr7xw_SjPKc2CoR8P88ZpmpygeA@mail.gmail.com>
Hi all,

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.

Please see http://www.w3.org/Bugs/Public/show_bug.cgi?id=12444 for
more information. As a picture is often more expressive than text,
please take a look at the example
picture:http://www.w3.org/Bugs/Public/attachment.cgi?id=975 (has to be
displayed unscaled).

Kind regards,

Hugues De Keyzer

La sola konstanto en la vivo estas la ?an?o.
The only constant in life is change.
   -- www.wikipedia.org
Received on Thursday, 14 April 2011 14:11:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT