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.
IndexProgramming Questions & HelpPrograms › Color blending.
Page Index Toggle Pages: 1
Color blending. (Read 760 times)
Color blending.
May 31st, 2009, 8:00am
 
I would like to know if there's a way to make colors blend without lowering the opacity?

i.e. i have a yellow square and a blue square overlapping, and want these to create a green square by blending the yellow and blue, but without just building the green square.
Re: Color blending.
Reply #1 - Jun 1st, 2009, 1:00am
 
I see no other solution in Processing: either you change the opacity or you find a way to build the intersection, by drawing a simple rectangle, by manipulating pixels, or something.
Re: Color blending.
Reply #2 - Jun 1st, 2009, 11:03pm
 
Re: Color blending.
Reply #3 - Jun 2nd, 2009, 12:57am
 
or maybe http://processing.org/reference/lerpColor_.html...

btw blendColor was new to me. Is it new ?
Page Index Toggle Pages: 1