How to draw circle animation in C/C++ graphics | By Source Code
Hello friend today in this video i will show you how to draw circle animation in c/c++ graphics video you can made more than 4 circle animation with together in one video.
click here for watching this video on youtube
/* Source Code */
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,i,x,y;
initgraph(&gd,&gm,"c://turboc3//bgi");
x=319;
y=239;
for(i=0;i<=99;i+=5)
{
setcolor(i);
//up
circle(319,219-i,20+i);
//down
circle(319,259+i,20+i);
//left
circle(299-i,239,20+i);
//right
circle(339+i,239,20+i);
delay(50);
}
getch();
closegraph();
}
Comments
Post a Comment