setcolor
December 24, 2011
/*
Write a program in C for setcolor
*/
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm;
initgraph(&gd,&gm,"C:\\TC\\BGI");
circle(100,100,50); /* drawn in white color */
setcolor(RED);
circle(200,200,50); /* drawn in red color */
getch();
closegraph();
return 0;
}
0 Comments