topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p311-x14-p14-p311-x14-p14.pde / pde



  void setup(){
    size(200,200);
  }
  void draw(){
    noFill();
    background(255);
    for(int y=0; y<height; y+=10){
      beginShape();
      for(int x=0; x<30; x++){
        float xx = mouseX;
        float xpos = (x/20.)*xx;
        float ypos = y+((y%20)*2-10)/10*(x%2)*mouseY;
        vertex(xpos,ypos);
      }
      endShape();
    }
  }
  


(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.