用c语言做的小动画
void water_three(int a,int b,int aa,int bb)
{
int bbb=bb;
setlinestyle(0,0,0);
setcolor(BLUE);
while(bbb>b){
line(a,bbb,aa,bbb);
bbb--;
delay(5000);
}
}
void show_text()
{
setcolor(RED);
settextjustify(1,1);
settextstyle(0,0,7);
outtextxy(430,60,"Filled !");
}
void main()
{
int graphdriver=DETECT,graphmode;
initgraph(&graphdriver,&graphmode,"");
setbkcolor(BLACK);
setcolor(WHITE);
setlinestyle(0,0,3);
shuilongtou();
water_one(0,129,253,172);
water_one(252,112,338,184);
water_one(337,129,384,169);
water_two(358,168,384,450);
water_three(241,225,481,450);
show_text();
getch();
closegraph();
}