topical media & game development

talk show tell print

graphic-processing-algorithm-Ch06-p136-p136.pde / pde



  void draw(){
    background(255);
    for(float i=0; i<30; i++){
      pushMatrix();
      rectMode(CENTER);
      noFill();
      translate(50,50);
      scale(1/(i/mouseX),1/(i/mouseX));
      rotate(radians(i*mouseY));
      rect(0,0,50,50);
      popMatrix();
    }
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.