"flying kite animation program in c" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "flying kite animation program in c" answered properly. Developers are finding an appropriate answer about flying kite animation program in c related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like flying kite animation program in c. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on flying kite animation program in c.
flying kite animation program in c
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
void main()
{
int gm,gd=DETECT;
int i= 0,j=0,rnd_x=0,rnd_y,stop_me=0;
initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
srand(time());
while(stop_me<=1000)
{
if(i>=180 &&j>=100 ) // controlling kite, so that it wouldn't disappear from screen
{
rnd_x=rand()%4 -3;
rnd_y=rand()%5 -4;
}
else{
rnd_x=rand()%3;
rnd_y=rand()%3;
}
line(200+i,200-j,250+i,250-j);
line(200+i,200-j,150+i,250-j);
line(150+i,250-j,200+i,350-j);
line(200+i,350-j,250+i,250-j);
line(200+i,200-j,200+i,350-j);
arc(200+i,275-j,25,155,50);
line(0,500,200+i,225-j);
i=i+rnd_x;
j=j+rnd_y;
stop_me=5+stop_me;
delay(100);
clearviewport(); // clearing image which would make illusion of flying kite
}
getch();
closegraph();
}
Source: programmerbay.com
All those coders who are working on the Whatever based application and are stuck on flying kite animation program in c can get a collection of related answers to their query. Programmers need to enter their query on flying kite animation program in c related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about flying kite animation program in c for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of flying kite animation program in c while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "flying kite animation program in c". Visit this developer's friendly online web community, CodeProZone, and get your queries like flying kite animation program in c resolved professionally and stay updated to the latest Whatever updates.