size(260, 260); noStroke(); background(0); for (int x = 0; x < width; x = x + 10) { for (int y = 0; y < height; y = y + 10) { fill(x, y, 0); rect(x, y, 9, 9); } }