#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); setfillstyle(SOLID_FILL, RED); rectangle(100+i,250,300+i,350); floodfill(101+i,251,RED); //setcolor(RED); //setfillstyle(SOLID_FILL, RED); //ellipse(310+i,300,270,90,50,10); //floodfill(300+i,300,RED); setcolor(WHITE); setfillstyle(SOLID_FILL, WHITE); circle(135+i,350,20); floodfill(135+i,350,WHITE); setcolor(WHITE); setfillstyle(SOLID_FILL, WHITE); circle(265+i,350,20); floodfill(265+i,350,WHITE); delay(10); cleardevice(); } getch(); closegraph(); }