BOUNCING BALLS SIMULATION
Help Document
Basic Information
This program simulates the bouncing of a chosen amount of balls in a canvas. This varying amount can be chosen by the user, you.
Functions
Menu
On the side of the browser, a menu is present to give the user optimum functionality , the following functions are listed below…
Ball Spawn
• Upon clicking in the open canvas, a ball will appear and move in a random direction.
Ball Color
• Upon clicking in the open canvas (with the rainbow checkbox selected), a ball will spawn with a random color.
Once you spawn a color that you like, uncheck the "rainbow" box to keep that color.
Ball Size
• User can choose a radius of all the balls with a scroll bar. The far left is the smallest the ball can get and the far right is the biggest the ball can get.
Ball Speed
• The simulation speed of the balls can be chosen in the menu with a slider bar (right side is fast and left side is slow).
Ball Contact
• Upon selection, the balls will bounce off of each other as well as the boundaries of the canvas.
Rainbow
• Upon clicking the Rainbow button, the color of the balls will change as they spawn.
Reset
• At the bottom of the menu, a reset button is present that will reset to the original canvas.
Pause
• At the bottom of the menu next to the reset button, the pause button will pause the simulation.
Start
• Upon pressing this button, the simulation will start and motion will commence.
Step
• By pressing this button, the simulation will proceed by one time step at a time. NOTE: the “pause” button must be pressed before you can use the “step” button.