W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Re: [css3-images] Premultiplication switch

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 29 Jul 2011 10:59:38 -0700
Message-ID: <CAAWBYDCtsgf86UAd-bqVep+ic_s348Vg-kQLZwDSLQb85GNrvg@mail.gmail.com>
To: Alan Gresley <alan@css-class.com>
Cc: Brian Manthos <brianman@microsoft.com>, Leif Arne Storset <lstorset@opera.com>, Brad Kemper <brad.kemper@gmail.com>, "www-style@w3.org" <www-style@w3.org>
On Fri, Jul 29, 2011 at 5:39 AM, Alan Gresley <alan@css-class.com> wrote:
> The way Opera interpolates this gradient,
>
>   linear-gradient(red, transparent, blue)
>
>
> suggest that internally, a double color stop (as shown below) is generated.
>
>   rgba(255,0,0,0) 50%, rgba(0,0,255,0) 50%
>
>
> So in affect, the keyword 'transparent' is already behaving as a switch.

No.  Internally, the colors are interpolated in premultiplied space.
There is no switch or duplication of color-stops.

~TJ
Received on Friday, 29 July 2011 18:00:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:42 GMT