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

Re: Compositing math in SVG

From: Rik Cabanier <cabanier@gmail.com>
Date: Sun, 22 Jul 2012 11:24:07 -0700
Message-ID: <CAGN7qDC38eDg8Oaz4HFcLvt9oxvDVwg-jBXsj0Vb+20uRTS7tQ@mail.gmail.com>
To: Calculemus <calculemus1988@gmail.com>
Cc: steve@fenestra.com, www-svg@w3.org
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 GMT

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