Simple Particle System by Daniel Shiffman. Particles are generated each cycle through draw(), fall with gravity and fade out over time A ParticleSystem object manages a variable size (ArrayList) list of particles.
Source code: BlinkenParticles
Built with Processing