Code

# include <graphics.h>
# include <conio.h>
# include <iostream.h>
void get_driver()
{
    int gDriver=DETECT,gMode;  // define variables
    initgraph(&gDriver,&gMode,"c:\\tc\\bgi");  // initialize graphics Library 
}
void main()
{
get_driver();
setcolor(LIGHTRED);
circle(100,200,50);
getch();
floodfill(100,200,LIGHTRED);
getch();
closegraph();
}


OUTPUT

 

Circle Un-Filled
Circle Un Filled
Circle Filled
Circle Filled

 

(Visited 311 times, 1 visits today)
Share with Friends :
Written by:

Leave a Reply

Your email address will not be published. Required fields are marked *