This project demonstrates a simulation of Brownian motion using p5.js, visualizing particles moving randomly within a defined space.
The code simulates Brownian motion by creating a set number of particles that move randomly within the canvas. The visualization showcases these particles moving chaotically and leaving paths behind.
- Brownian Motion Simulation: Particles move randomly, simulating the erratic movement observed in Brownian motion.
- Path Rendering: Each particle leaves a fading path, depicting its path over time.
- Customizable Parameters: Easily adjust the number of particles and their behavior within the simulation.
You can access the brownian simulator by clicking here!
- Modify the
nParticles
constant insketch.js
to change the number of particles simulated. - Experiment with canvas size adjustments and particle behavior parameters to observe different simulations.
- p5.js: JavaScript library for creative coding and visualization.