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 › Rotating many images, how to approach this
Page Index Toggle Pages: 1
Rotating many images, how to approach this? (Read 432 times)
Rotating many images, how to approach this?
Jan 23rd, 2007, 2:34pm
 
I am going to need to rotate hundreds of different images every single frame to different angles; How should I approach this? (or is this simply not possible)?

Thanks.
Re: Rotating many images, how to approach this?
Reply #1 - Jan 23rd, 2007, 3:12pm
 
It's fairly easy:

Code:
//for each image:
pushMatrix()
//so it draws in the right place:
translate(whereX,whereY);
rotate(angle);
//if you want to have the image centred on the above location,
// uncomment the next command
// translate(-myImage.width/2,-myImage.height/2);
image(myImage,0,0);
popMatrix();
Page Index Toggle Pages: 1