/** * Loop to grid. * *

Elie Zananiri
* CART 253, Winter 2008

*/ size(300, 300); background(255); stroke(0); // draw the vertical lines int x = 0; while(x < width) { line(x, 0, x, height); x = x+20; } // draw the horizontal lines int y = 0; while(y < height) { line(0, y, width, y); y = y+20; }