On Thu, 26 Aug 2004, patrick wrote:
i'm a user of gridflow, pdp and gems looking for effects like gimp layer mixing effect : screen, multiply burn, lighten only, overlay and others.
afaik, multiply(burn) is like:
#N canvas 0 0 450 300 10; #X obj 30 24 inlet; #X obj 110 24 inlet; #X obj 30 73 @ *>>8; #X obj 30 120 outlet; #X connect 0 0 2 0; #X connect 1 0 2 1; #X connect 2 0 3 0;
and screen is like:
#N canvas 0 0 450 300 10; #X obj 30 24 inlet; #X obj 110 24 inlet; #X obj 30 48 @ inv+ 255; #X obj 110 48 @ inv+ 255; #X obj 30 73 @ *>>8; #X obj 30 98 @ inv+ 255; #X obj 30 120 outlet; #X connect 0 0 2 0; #X connect 1 0 3 0; #X connect 2 0 4 0; #X connect 3 0 4 1; #X connect 4 0 5 0; #X connect 5 0 6 0;
and addition is like:
#N canvas 0 0 450 300 10; #X obj 40 19 inlet; #X obj 40 38 @ +; #X obj 40 57 @ min 255; #X obj 79 19 inlet; #X obj 40 76 outlet; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 4 0; #X connect 3 0 1 1;
and substraction is like:
#N canvas 0 0 450 300 10; #X obj 40 19 inlet; #X obj 79 19 inlet; #X obj 40 76 outlet; #X obj 40 38 @ -; #X obj 40 57 @ max 0; #X connect 0 0 3 0; #X connect 1 0 3 1; #X connect 3 0 4 0; #X connect 4 0 2 0;
But I think that most of the remaining effects are slightly more complex. If I'm not mistaken, quite a few of them convert to HSV and back to RGB.
Mathieu Bouchard http://artengine.ca/matju