Labels

Friday, 16 August 2013

242 - rotate constrained done

void myRotate(){
   
 // translate(width/2,height/2);
  if(mouseX > 540){
   // pushMatrix();
  float tryy = map(mouseX,0,width/2,0, TWO_PI);
  rotate(tryy);

This is my rotate function, what this is doing is telling my application to rotate my grid when the mouse is over 540pxls of the screen.

No comments:

Post a Comment