Processing Forum
// http://forum.processing.org/topic/how-to-recreate size(500, 500); noLoop(); smooth(4); noStroke(); background(#F00020); fill(#0000F0); final int dim = 10, dd = dim << 1; for (int row = 0; row < height; row += dim) for (int col = (row/dim & 1) == 0 ? -dd : -dim; col < width; rect(col += dd, row, dim, dim));
// http://forum.processing.org/topic/how-to-recreate size(500, 500); noLoop(); smooth(4); final int dim = 10; background(-1); stroke(#0000F0); strokeWeight(dim); strokeCap(SQUARE); //strokeCap(PROJECT); for (int row = dim>>1; row < height; row += dim) line(row>>1, row, width - (row>>1), row);