#include #include #include void main() { int i; int gd=DETECT,gm; initgraph(&gd,&gm,"c:\\tc\\bgi"); for(i=0;i<=200;i++) { setcolor(RED); line(200,50,200+i,300); setcolor(WHITE); setfillstyle(SOLID_FILL, WHITE); circle(200+i,300,30); floodfill(200+i,300,WHITE); delay(10); clrscr(); } for(i=0;i<=200;i++) { setcolor(RED); line(200,50,200-i,300); setcolor(WHITE); setfillstyle(SOLID_FILL, WHITE); circle(200-i,300,30); floodfill(200-i,300,WHITE); delay(10); clrscr(); } getch(); closegraph(); }