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

Re: Compositing math in SVG

From: Calculemus <calculemus1988@gmail.com>
Date: Sun, 22 Jul 2012 19:03:22 +0200
Message-ID: <CAOn8Oo9Sqj43yT_yv+HqRr9y00vvXZAtrN5v0ae8e=Pr7SV+Aw@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: steve@fenestra.com, www-svg@w3.org
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 GMT

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