FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   Newbie question - rotate picture in place
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Newbie question - rotate picture in place  (Read 297 times)
NEWman


Newbie question - rotate picture in place
« on: Dec 10th, 2004, 12:55am »

hi, i am new to this program and was wondering if anyone knew how to rotate a picture in place.  i can only make it rotate around its origin (top left coordinates).  any help would be apreciated.  
 
thank you
 
REAS


WWW
Re: Newbie question - rotate picture in place
« Reply #1 on: Dec 10th, 2004, 4:15am »

draw the picture so its origin moves, for example if the image is 100 x 100 pixels, draw it like so:
 
push();
translate(imageX, imageY);
image(-50, -50);
pop();
 
Pages: 1 

« Previous topic | Next topic »