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 & HelpSyntax Questions › How to Mix two effects in Draw()
Page Index Toggle Pages: 1
How to Mix two effects in Draw() ? (Read 788 times)
How to Mix two effects in Draw() ?
Nov 21st, 2006, 12:25am
 
Hi,

I would like to learn how to mix two effects in Draw()

Quote:
Draw() {

Background(img);

Cubes();

Turbulence() }


For example :

Background image  > Rotating cubes > turbulence effect that will affect both background image and cubes.
Re: How to Mix two effects in Draw() ?
Reply #1 - Nov 21st, 2006, 6:16pm
 
jaylfk,

Not to be a pain, but it might be helpful (for you and others) if you took a stab at this and posted your code. It would certainly make it easier to offer assistance.

(I teach for a living, so I'm a bit overly sensitive to certain open-ended requests for help Wink
Re: How to Mix two effects in Draw() ?
Reply #2 - Nov 22nd, 2006, 9:24am
 
Yeah you're right Wink

Here is the code i just experiment. (still learning processing)

http://bodytag.org/tp02/tp02.pde

and

http://www.metaphorical.net/code/processing/applet/pond.pde

I would like to know what is the procedure to make the tadpoles appear in between the waterdrops effect and the background.

But i think processing is not working by layers, we'll have to make the waterdrops to affect both the tadpoles and the background images.
Page Index Toggle Pages: 1