├── Flying Kite.C └── README.md /Flying Kite.C: -------------------------------------------------------------------------------- 1 | //Author : youtube channel - Dotnet Mob 2 | //Date : 05-Nov-15 3 | //Description : Program for kite animation 4 | //For More :https://www.youtube.com/c/DotnetMob 5 | 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | void main() 12 | { 13 | int gd=DETECT,gm; 14 | int poly[10]; int flag=10,f=10; 15 | int x=5,y=5,x_inc=0,y_inc=0; 16 | initgraph(&gd,&gm,"c:\\turboc3\\bgi"); 17 | while(!kbhit()) 18 | { 19 | setcolor(WHITE); 20 | if(x<20) 21 | x_inc+=5; 22 | if(x > 400) 23 | x_inc-=5; 24 | if(y>300) 25 | y_inc-=5; 26 | if(y<50) 27 | y_inc+=5; 28 | x=x+x_inc; 29 | y=y+y_inc; 30 | poly[0]=100+x+f; 31 | poly[1]=50+y+f; 32 | poly[2]=125+x+f; 33 | poly[3]=30+y+f; 34 | poly[4]=150+x+f; 35 | poly[5]=50+y+f; 36 | poly[6]=125+x; 37 | poly[7]=70+y; 38 | poly[8]=100+x+f; 39 | poly[9]=50+y+f; 40 | drawpoly(5,poly); 41 | fillellipse(15,280,10,10); 42 | line(15,280,15,320); 43 | line(15,320,10,350); 44 | line(15,320,30,350); 45 | line(15,320,30,300+flag); //hand 46 | setcolor(RED); 47 | line(30+f,300+flag,125+x,70+y); //rope 48 | line(125+x,70+y,110+x,90+y); 49 | line(125+x,70+y,125+x,100+y); 50 | line(125+x,70+y,139+x,110+y); 51 | flag=-flag;f=-f; 52 | delay(200); // x++;y++; 53 | cleardevice(); 54 | 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flying Kite in CG. 2 | Flying Kite in Computer Graphics 3 | 4 | ## Get the Code 5 | 6 | ``` 7 | $ git clone https://github.com/CodAffection/Flying-Kite-in-CG.git 8 | ``` 9 | 10 | ## How it works ? 11 | 12 | :tv: Video tutorial on this same topic 13 | Url : https://youtu.be/P0dLgbH3wD0 14 | 15 | Demo for Flying Kite in Computer Graphics 18 | 19 | 20 | | :bar_chart: | List of Tutorials | | :moneybag: | Support Us | 21 | |--------------------------:|:---------------------|---|---------------------:|:-------------------------------------| 22 | | Angular |http://bit.ly/2KQN9xF | |Paypal | https://goo.gl/bPcyXW | 23 | | Asp.Net Core |http://bit.ly/30fPDMg | |Amazon Affiliate | https://geni.us/JDzpE | 24 | | React |http://bit.ly/325temF | | 25 | | Python |http://bit.ly/2ws4utg | | :point_right: | Follow Us | 26 | | Node.js |https://goo.gl/viJcFs | |Website |http://www.codaffection.com | 27 | | Asp.Net MVC |https://goo.gl/gvjUJ7 | |YouTube |https://www.youtube.com/codaffection | 28 | | Flutter |https://bit.ly/3ggmmJz| |Facebook |https://www.facebook.com/codaffection | 29 | | Web API |https://goo.gl/itVayJ | |Twitter |https://twitter.com/CodAffection | 30 | | MEAN Stack |https://goo.gl/YJPPAH | | 31 | | C# Tutorial |https://goo.gl/s1zJxo | | 32 | | Asp.Net WebForm |https://goo.gl/GXC2aJ | | 33 | | C# WinForm |https://goo.gl/vHS9Hd | | 34 | | MS SQL |https://goo.gl/MLYS9e | | 35 | | Crystal Report |https://goo.gl/5Vou7t | | 36 | | CG Exercises in C Program |https://goo.gl/qEWJCs | | 37 | 38 | --------------------------------------------------------------------------------