Modified example from processing site.
Press space to stop and change cell values with the mouse, r to restart, c to clear
The Life with boundaries (plane).
Faster Life without boundaries (torus).