|
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
|
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();
|
|
|
|
|