Implementation of bouncing ball animation ((Two balls) using C
Bouncing Ball
-
Install Dev-C++ https://sourceforge.net/projects/orwelldevcpp/
-
Install WinBGIm Graphics Library in Dev C++ https://www.youtube.com/watch?v=gibqiFtBARY
-
Open the folder “Bouncing Ball”
-
Double click on the file “Bouncing Ball.cpp”
-
Click the button “Compile and run” or press F11.
-
Enter the radius of the balls.
-
You will see two balls of the same radius bouncing on the graphics window.
NOTE: A .gif file named “Bouncing Ball (output).gif” has been included in the folder to show the animation of the two balls bouncing. You are free to try with any radius.
Note: Using Google Chrome or Mozilla Firefox is recommended.