[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 <callow_mark@hicorp.co.jp> 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 that
  • 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 sRGB space
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.


Mark Barnes
Sr Software Architect, Biodroid