Like this?
Code:
PImage buffer;
void setup(){
size(200,200);
buffer = new PImage(200,200);
framerate(2);
}
void draw(){
translate(100,100);
rotate(0.1);
image(buffer,-100,-100);
rect(random(100),-5,10,10);
loadPixels();
buffer.copy(g,0,0,200,200,0,0,buffer.width,buffer.height);
buffer.updatePixels();
}
I've slowed it down a lot to point out the fact that the rotation seems to degrade the image a lot.
It might be better to create an illusion of rotation somehow. Not sure.
The motion capture using EyesWeb isn't the gesture recognition thing. I've no code posted on gesture recognition as it's a new field of research for me. The motion capture isn't working too well either. Seems it only works well with lights in the dark. A lot of the code for it I've borrowed from other people. I've got to the point where I could spend hours researching how to make a new engine or just use someone else's readymades plug them all together and credit them (thankyou Ariel, v3ga, JohnG).