Re: [css3-images] Gradients feedback

On Mon, Aug 30, 2010 at 6:54 AM, Alan Gresley <alan@css-class.com> wrote:
> Alan Gresley wrote:
> [snip]
>>>
>>> The grayish band in the middle of the gradient is roughly the same as the
>>> midway point between yellow and white / black in the 3d-color-prism. It
>>> would actually be half the value in intensity.
>
> [snip]
>
> In other words, the midway point of this gradient,
>
>
> <div style="background:-moz-linear-gradient(left, yellow,
> transparent)"></div>
>
>
> is the same as this opaque color.
>
>
> <div style="background:#808000;opacity:0.5;"></div>

Right, that's what you get if you use non-premultiplied colors
(postmultiplied?).  That's not what we want, which is why dbaron is
suggesting using premultiplied colors, so that the halfway point in
that transition will be #80800080.

~TJ

Received on Monday, 30 August 2010 14:57:03 UTC