Revision: 46734
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 24, 2011 07:37 by studioevoque
Initial Code
float counter;
PImage img;
void setup()
{
counter=0.0;
size(300,300);
img=loadImage("brownplane.png");
}
void draw()
{
background(0);
counter++;
translate(width/2-img.width/2, height/2-img.height/2);
rotate(counter*TWO_PI/360);
translate(-img.width/2, -img.height/2);
image(img,0,0);
}
Initial URL
http://processing.org/discourse/yabb2/YaBB.pl?num=1251909297
Initial Description
Initial Title
Rotating an Image around it's center
Initial Tags
java
Initial Language
Processing