/* Program PIXEL_1.C
**
** P. H. Anderson, MSU, 27 Nov 94
*/
#include <stdio.h>
#include <graphics.h>
void main(void)
{
int graphdriver = DETECT, graphmode, color, n, m;
initgraph(&graphdriver, &graphmode, "c:\\turboc");
/* detect and initialize graphics system */
for(n=0; n<50; n++)
{
putpixel(250+n,350,BLUE); /* draw a horizontal line */
}
for(m=0; m<5; m++)
{
for(n=0; n<5; n++)
{
putpixel(250+n,250+m,RED);
}
}
}