browse OpenProcessing

Oscilloscope
Brownian Motion
beef it up!
browse all>

browse the portfolio of Giles Whitaker

Four Winds
Perlin Carpet
Plasma Fractal
Ruin2 (faster)
see more>
Brownian Motion

Brownian Motion

uploaded by
Giles Whitaker
Brownian motion simulator. Particles start in bottom right corner, and gradually become equally distributed across container, like two gases mixing in a container.
Embed Code
Fave'd by 5 users
Sketch added to your favorites in your portfolio.
You must login/register to add this sketch to your favorites.

comments

source code

Comments

Barbara R
30 Nov 2009, 02:45
I'm a huge fan of Brownian Motion and (but out of other intentions) i also wanted to write a code with bouncing and colliding objects :)
Giles Whitaker
30 Nov 2009, 10:11
It wouldn't be too hard to add collisions- every frame you would have to check every particle against all the others to see if it has collided. Then conservation of momentum in x and y would give you the right equations to use to determine the velocity post-collision.
You need to login/register to comment.