We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
blend modes (Read 388 times)
blend modes
Jul 2nd, 2006, 11:30am
 
Can anyone confirm the currently available blend modes?

The javadoc seems to reference a number of blend modes as constants but does not mention them as part of public void blend()

chrs
][oyd
Re: blend modes
Reply #1 - Jul 3rd, 2006, 10:47am
 
Hi, take a look at my blendmodes class at codetree:

http://www.codetree.org/artwork/art.php?id=149

The class have a bunch of differend blendmodes like average, multiply, burn ....
Re: blend modes
Reply #2 - Jul 4th, 2006, 5:33am
 
Looks interesting but I can't get it to work.

I've change the "myTitle==" bits to normal keypress code, added reference to my own images and I get a Null pointer exception at line33
pixels[index]=mode.average(cl1,cl2);

not entirely sure why?!
Re: blend modes
Reply #3 - Jul 4th, 2006, 9:36am
 
Sorry, I've checked the code and it's not the right one. I've change it.
Page Index Toggle Pages: 1