Permalink
Browse files

cleaning up format translator.pde

  • Loading branch information...
1 parent f2a7ede commit ea613ecd7f1d78ccca8da756d66729fa5bbafcc5 @joshuajnoble committed Mar 10, 2012
Showing with 18 additions and 18 deletions.
  1. +18 −18 ch08/0805/translator.pde
@@ -6,31 +6,31 @@ void setup() {
void draw() {
background(122);
- pushMatrix();
+ pushMatrix();
translate(100, 100);
ellipse(30, 30, 300, 300);
rect(250, 250, 200, 200);
pushMatrix();
-fill(255, 100);
- translate(100, mouseX - 100);
- ellipse(0, 0, 300, 300);
- rect(100, 100, 200, 200);
- pushMatrix();
- fill(255, 100);translate(mouseY - 100, 100);
- ellipse(0, 0, 300, 300);
- rect(100, 100, 200, 200);
- pushMatrix();
-rotate(PI*rotateAmt);
- translate(200, 200);
- rect(0, 0, 50, 50);
- rect(−200, −200, 50, 50);
- rect(−100, −100, 50, 50);
-popMatrix();
- popMatrix();
+ fill(255, 100);
+ translate(100, mouseX - 100);
+ ellipse(0, 0, 300, 300);
+ rect(100, 100, 200, 200);
+ pushMatrix();
+ fill(255, 100);translate(mouseY - 100, 100);
+ ellipse(0, 0, 300, 300);
+ rect(100, 100, 200, 200);
+ pushMatrix();
+ rotate(PI*rotateAmt);
+ translate(200, 200);
+ rect(0, 0, 50, 50);
+ rect(−200, −200, 50, 50);
+ rect(−100, −100, 50, 50);
+ popMatrix();
+ popMatrix();
popMatrix();
popMatrix();
-// modify the rotate variable
+ // modify the rotate variable
rotateAmt += 0.01;
}

0 comments on commit ea613ec

Please sign in to comment.