size (200,200); background(255); int r=0; for (int x=0; x<200; x=x+10) { fill(r,0,0); r=r+21; for (int y=0; y<200; y=y+10){ smooth(); rect(x,y,8,8); } }