This is a simulation of evolution, specifically organisms to adapt. Cell variations can be from: Light blue - Blue - Purple - Pink Light blue does well in the coldest environment blue does well in the cold environment purple does well in the hot environment and pink does well in the hottest environment
The important code logic is the cell reproduction. Basically when a cell reproduces it has a chance to change color, a cell can only become slightly darker or slightly lighter