topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p323-p31-p323-p31.pde / pde



  void setup(){
    noFill();
    size(500,500);
  }
  void draw(){
    background(255);
    for(float i=1; i<20; i++){
      pushMatrix();
      translate(width/2,height/2);
      scale(1/(i/mouseY*90),1/(i/mouseY*90));
      rotate(radians(i*mouseX));
      rect(0,0, 200,100);
      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.