Monday, July 05, 2010

Pixels

void setup() {  
    size(800,500); 
frameRate(2);
}  
void draw() {  
  
  
      
noStroke();
     for (int x=0; x<800; x=x+20) { 
       for (int y=0; y<500; y=y+20) { 
         
        if(random(1)<0.5) {
          fill(0);
          } else {
          fill(255);
          }       
         rect(x,y, 20,20); 
     }
   }  
  
}

info info

submitted by: ric_lmc
views: 37


Tags:

comments comment

loading loading...

 

Add a comment: