This animation uses a simple mathematical
formula to generate the new positions of each particle. The beaker starts
out with 100 molecules of gas at its bottom. The animation does not show the
molecules of oxygen, nitrogen or carbon dioxide in the air. Unless the
temperature is absolute zero, ie minus 273 oC, the particles will all be
moving about at random. Heating the gas will make the molecules move faster
and cooling them will make them slow down. You can watch the molecules
spread out; this is what actually happens in diffusion of gases. Eventually
all the molecules will be so spread out there will be virtually none left,
but since diffusion is a slow process, this will take a long time.