[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] The Newly Expanded Color Space Issue
On Sun, Sep 12, 2010 at 9:40 PM, Mark Callow <email@example.com> wrote:
On 09/09/2010 05:28, Vladimir Vukicevic wrote:
----- Original Message -----
For choice 2, the simplest option would be to define the output canvas to always be sRGB (as with CSS) and leave it at that;
The pieces of the Canvas2D and CSS spec's quoted in this thread say
- CSS colors are specified in sRGB
- Canvas2D processing shall be done in the same color space used
for CSS processing
- getImageData/putImageData return/accept colors specified in
These specs do not say that processing of the Canvas2D drawings or
web page blending must be done in an sRGB space.
I think Mark Callow summarizes the web-centric (and overriding?) spec compliance aspects of this topic very well here. It seems clear from this vantage that sRGB is the color space of the api and should be specified as such. The color space of the underlying graphics driver and hardware (being linear or not) and conversions to/from sRGB are implementation details also worthy of documentation.
Sr Software Architect, Biodroid