Read up on Reaction-Diffusion systems :) More specifically, I implemented a modified version of the Grey-Scott model. The windows version of the jam version should also work much better in some computers.