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 › One In Front of The Other
Page Index Toggle Pages: 1
One In Front of The Other (Read 163 times)
One In Front of The Other
Jan 6th, 2009, 5:05pm
 
Hey guys,

I'm new here. Just started using Processing a few days ago and I need some help with this.

I have an array that's made up of images. I have a for loop that picks one of those images at random and then displays it with a random scale and random position.

How can I make it so that the bigger images are always in front of the smaller ones?

Right now, the last image to be displayed is the one in front so I get small ones in front of big ones and I don't want that.

Thanks in advance.
Page Index Toggle Pages: 1