sand-sim/1.jpg
sand-sim/2.jpg

Sand simulator

#Javascript

This project is a small experimental playground focused on physics-like simulations in JavaScript using the HTML Canvas. The goal was to create a simple yet natural-feeling sand simulation that runs entirely in the browser.

Users can click and drag with the mouse to spawn sand particles at a chosen position. The particles fall downward under the influence of gravity and naturally pile up, mimicking the behavior of real sand. The simulation responds in real time to user input and visualizes the behavior of individual particles within the canvas.