topical media & game development

talk show tell print

graphic-processing-algorithm-Appendix-p310-x14-p11-p310-x14-p11.pde / pde



  size(200,200);
  for(int x=0; x<width; x+=10)
    for(int y= 0; y<height; y+=10){
      beginShape();
      vertex(x+random(-10.,10.),y+random(-10.,10.));
      vertex(x+random(-10.,10.)+10, y+random(-10.,10.));
      vertex(x+random(-10.,10.)+10, y+random(-10.,10.)+10);
      vertex(x+random(-10.,10.), y+random(-10.,10.)+10);
      endShape(CLOSE);
    }
  


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