How to draw a circle animation in c/c++ graphics

How to draw a circle animation in c/c++ graphics | by Source Code

Hello friend today in this video i will show you how to create a circle animation in c/c++ graphics


click here for watching this video in youtube

/*source code*/

#include<stdio.h> #include<conio.h> #include<dos.h> #include<graphics.h> void main() { clrscr(); int gd=DETECT,gm,i; initgraph(&gd,&gm,"c://turboc3//bgi"); for(i=1;i<=585;i++) { setcolor(RED+i); circle(50+i,50,50); circle(585-i,150,50); circle(50+i,250,50); circle(585-i,350,50); circle(40+i,445,43); delay(10); cleardevice(); } getch(); closegraph(); }

Comments