Matthew Spillman's
Processing Projects

Ball Physics

Pick a simulation setup. During a simulation, you can click to add more balls.

This is a little toy physics engine that only deals with circles. The "Gas Mixing" setup starts out with two different colored gases on each side of the screen, with each ball representing an atom or molecule of that gas. Over time, they become blended together. The "Newton's Cradle" and "Gravity - Elastic" setups have elastic collisions (where no energy is lost) while "Gravity - Inelastic" has inelastic collisions, so the balls come to a standstill over time.

AAAAAAAA