用C语言做的图形学小作业,

时间:2013-05-13 08:00:05
【文件属性】:

文件名称:用C语言做的图形学小作业,

文件大小:2KB

文件格式:NONE

更新时间:2013-05-13 08:00:05

图形学

用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(); }


网友评论

  • 挺不错的,简单