topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p322-1-p322-1.pde / pde



  void setup(){
    size(300,300);
  }
  void draw(){
    noFill();
    background(255);
    float xn=0,yn=0;
    for(int i=0; i<30; i++){
      float x = (i/20.)* mouseX;
      float y = 50+(i%2)*mouseY;
      line(x,y,xn,yn);
      xn = x;
      yn = y;
    }
  }
  


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