A simple HTML canvas experiment implementing gravity.
npm i to install dependencies, then run
npm run dev to start a development server (likely at http://localhost:1234).
npm build will bundle everything into
- Up/Down arrows change the effect of gravity
- Left/Right arrows change the bounce effect
- Number keys (1-9) changes the number of balls
- Space to reinitialize
Released under the MIT license - do whatever you wish with it.
Made with love by Michael Hamilton.