Random Squares
/* random squares by Cym
 * processing assignment of November 11, 2009
 */

void setup() {
  frameRate(1);
  size(200,200);
}

void draw() {
  noStroke();
  for (int y=0; y<=200; y+=10) {
    for (int x=0; x<=200; x+=10) {
      fill(random(0,255));
      rect(x,y,10,10);
    }
  }
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License