IFD:All Hail The Pixels/Patterns: Difference between revisions

From Medien Wiki
Line 378: Line 378:


http://pastebin.com/91y8jZ53
http://pastebin.com/91y8jZ53
=== Jorgelina Garcia ===
GRID I
[[Image:grid1_yor.JPG‎ ]]
void setup(){
size(600,600);
background(255);
}
void draw(){
 
  for(int y=10; y<590; y= y+5){
    for( int x=10; x<590; x= x+5){ 
    line(x, 0, x, height );
    line(0, y, width, y);
    }
 
  }
}
GRID II
[[Image:grid2_yor.JPG‎ ]]
void setup(){
size(600,600);
background(255);
}
void draw(){
 
  for(int y=0; y<height; y= y+20){
    for( int x=0; x< width; x= x+20){ 
   
      stroke(0);
      line(x, 0, x, height );
    line(0, y, width, y);
    }
 
  }
  for(int i=0; i<height; i= i+50){
    for(int s=0; s<width; s= s+50){
      noFill();
     
      //stroke(random(255), random(255), random(255));
      stroke(0,200,200);
      rectMode(CENTER);
      rect(i,s,100,100);
     
    }
  }
}
GRID III
[[Image:grid3_yor.JPG‎ ]]
void setup(){
size(600,600);
background(255);
}
void draw(){
 
for ( int w = width; w > 0 ; w-=10) {
  stroke(200,200,2);
  noFill();
  rectMode(CENTER);
  rect(width/2,height/2,w,w); 
 
}
}