You need Internet Explorer and the .NET Framework installed in order to see the sketch.

built with PROCESSING.NET


Source Code:            Syntax: C#
// Embedding Iteration
// by REAS <http://reas.com>

// Embedding "for" structures allows repetition in two dimensions.

// Updated 21 August 2002

// Modified for Processing.NET

double box_iSize = 11; 
double box_space = 12; 
int margin = 7; 
 
size(200, 200); 
background(0); 
noStroke(); 
 
// Draw gray boxes 
 
for(int i = margin; i < width-margin; i += (int)box_space) { // MODIFIED
  for(int j = margin; j < height-margin; j += (int)box_space) { // MODIFIED
    fill(255 - box_iSize*10); 
    rect(j, i, box_iSize, box_iSize); 
  } 
  box_iSize = box_iSize - 0.6; 
}