Re: [css3-images] Premultiplication switch (was: gradient pre-multiplied interpolation)

Tab Atkins Jr. <> skreiv Wed, 27 Jul 2011 18:03:52  

> On Wed, Jul 27, 2011 at 5:37 AM, Leif Arne Storset <>  
> wrote:
>> I agree with Alan that the effects demonstrated at [0] are desirable,  
>> but
>> premultiplied is a much better default. The switching idea is worth
>> considering, however. I think use of the rgba() and hsla() are  
>> potentially
>> confusing as switches, but an explicit 'unpremultiplied' switch wouldn't
>> be: 'linear-gradient(left, unpremultiplied, rgba(255,255,0,0), yellow)'.
> I believe a better approach would be to augment SVG's
> color-interpolation property with options for switching between
> premultiplied and non-premultiplied.  That way other things could
> potentially switch as well, like transitions.

Sounds quite reasonable.

Leif Arne Storset
Core Technology Developer, Opera Software
Oslo, Norway

Received on Thursday, 28 July 2011 10:07:41 UTC