home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC083.C
< prev
next >
Wrap
Text File
|
1988-04-10
|
823b
|
19 lines
/************************************************************************/
/* 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);
}
}