Floodfill() function in C graphics by R4R Team

Without floodfill:

program-

#include< stdio.h>
#include< conio.h>
#include< graphics.h>
void main()
{
int gd=DETECT,gm=0;
initgraph(&gd,&gm,"");
circle(200,200,50);
getch();
}


output:



With Floodfill:

program-

#include< stdio.h>
#include< conio.h>
#include< graphics.h>
void main()
{
int gd=DETECT,gm=0;
initgraph(&gd,&gm,"");
circle(200,200,50);
floodfill(200,200,WHITE);
getch();
}

output:




Leave a Comment: