W3C home > Mailing lists > Public > www-svg@w3.org > July 2009

Re: SVG Masking and different implementations

From: Chris Lilley <chris@w3.org>
Date: Thu, 30 Jul 2009 15:07:14 +0200
Message-ID: <1995188560.20090730150714@w3.org>
To: Dirk Schulze <vbs85@gmx.de>
CC: www-svg@w3.org
On Saturday, February 14, 2009, 9:35:59 PM, Dirk wrote:

DS> Doesn't it mean that we just have to calculate the luminance by
DS> r * 0.2125 + g * 0.7154 + b * 0.0721 and set the alpha to this
DS> luminance?

Just to close the loop on that for the archives - it depends on how you are defining r, g and b. They need to be in linear light, not gamma corrected for screen display. See

http://www.w3.org/TR/WCAG20/relative-luminance.xml






-- 
 Chris Lilley                    mailto:chris@w3.org
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG
Received on Thursday, 30 July 2009 13:07:32 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:42 GMT