Re: Compositing math in SVG

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?

Received on Sunday, 22 July 2012 17:03:49 UTC