Circle animation in c/c++ graphics

 Circle animation in c/c++ graphics | By Source Code

Hello friend today in this video i will show you how to make a colorful circle animation in c programming through graphics


click here to see 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=getmaxx()/2;
y=getmaxy()/2;
for(i=1;i<=250;i+=3)
{
setcolor(i);
circle(x,y,10+i);
delay(15);
cleardevice();
}
getch();
closegraph();
}


Comments