码迷,mamicode.com
首页 > 编程语言 > 详细

C语言的画图(圆形动画)

时间:2016-02-27 15:01:49      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:

#include <stdio.h>
#include <malloc.h>
#include<graphics.h>
#define LEN sizeof(struct student)
#include "math.h"
#define PI 3.1415926

void main()
{initgraph(680,680);

while(1)
{
BeginBatchDraw();
for(int y=100;y<480;++y)
{
setcolor(GREEN);
setfillstyle(YELLOW);
fillellipse(y-30,30,30+y,90); //里面的参数分别是fillellipse(左,上,右,下) 圆的边界


//getchar();
line(0,y,639,y);

FlushBatchDraw();
Sleep(20);
cleardevice();

}}
EndBatchDraw();
closegraph();
getchar();

 

}

 

C语言的画图(圆形动画)

标签:

原文地址:http://www.cnblogs.com/locean/p/5222858.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!