Particle Simulator
Built in Haskell
Description
This particle simulator, built in Haskell using the Gloss library, visualizes a dynamic system where particles move continuously, bouncing off both the walls of the environment and each other. Each interaction follows simple physical rules, creating an engaging display of motion and collision behavior. The simulation also includes a real-time frames-per-second (FPS) counter at the top of the screen, providing insight into performance as the system runs. Additionally, the number of particles in the simulation can be easily adjusted from the main function, allowing for experimentation with different levels of complexity.
Dependencies
- Gloss
- Cabal
- Linear