setfillstyle

/*
Write a program in C for setfillstyle
*/

#include<graphics.h>
#include<conio.h>

main()
{
int gd = DETECT, gm;

initgraph(&gd, &gm, "C:\\TC\\BGI");

setfillstyle(XHATCH_FILL, RED);
 

circle(100, 100, 50);
 

floodfill(100, 100, WHITE);

getch();
 

closegraph();
 

return 0;
}



Post a Comment

0 Comments