Re: Compositing math in SVG

On Sun, Jul 22, 2012 at 10:03 AM, Calculemus <calculemus1988@gmail.com>wrote:

> Ah, sorry Rik I am still confused as hell.
>
> Ok, so I need first to compute this:
>
> (r,g,b) = A*aa*(1-ba) + B*ba*(1-aa) + aa*ba*Blend(A, B),
>
> then compute alpha,
>
> And then, do this:
>
> (r,g,b) + (1-alpha)*(1,1,1)
>
> I am probably wrong?
>

No.
The matting with white happens at the way end and on the entire page after
all compositing is done. You don't do it for every compositing operation.

Rik

Received on Sunday, 22 July 2012 18:24:35 UTC