/************************************************************************/ /* Clear screen and then draw 16 boxes */ /************************************************************************/ solid_box16() { int i, j, x, y, color; solid_box(0,0,640,350,0); /* Clear screen */ for (j = 0; j < 4; j++) /* Loop over rows of b's*/ for (i = 0; i < 4; i++) /* Loop over columns */ { y = j * 200/4; /* Draw the box */ x = i * 640/4; color = i + j * 4; solid_box(x, y, x + 640/4, y + 200/4, color); } }