1/** 2 * Synthesis 1: Form and Code 3 * Wilson Grids by Casey Reas (www.processing.org) 4 * p. 152 5 * 6 * Step 1, basic embedded for structure. 7*/ 8 9 10size(600, 600); 11background(255); 12int sqNum = 12; 13int sqSize = width/sqNum; 14int halfSize = sqSize/2; 15 16for (int y = halfSize; y < width; y = y+sqSize) { 17 for (int x = halfSize; x < height; x = x+sqSize) { 18 rect(x-halfSize+2, y-halfSize+2, sqSize-4, sqSize-4); 19 } 20} 21