Cells
This sketch is a simulation of life and mutation.The playground starts with a single, randomly generated cell. Cells have a genome and reproduce.
When reproducing the genome of a cell may mutate, changing one or more of it's sequences.
Characteristics
The following characteristics exist- The body color of the cell (bXXYYZZ from 0x000000 to 0xFFFFFF).
- The border color of the cell (lXXYYZZ from 0x000000 to 0xFFFFFF).
- The size of the cell (sXX from 8 to 20 pixel).
- The border width of the cell (wX from 0 to 5 pixel).
- The shape of the cell (fX TRIANGLE=0, CIRCLE=1, ELLIPSEH=2, QUADRAT=3, RECTANGULARH=4, ELLIPSEV=5, RECTANGULARV=6)
- The maximum age of the cell (aXXX from 200 to 1000 ticks).
- The reproduction rate of the cell (rXXX from 25 to 200 ticks).
- The food demand of the cell (dXXX from 20 to 100 food).
The playground and food
The playground is limited to 800 cells and provides 5000 food for them.If a cell gets less fodd than it needs the missing food makes it age faster.
Dependencies
Some of the characteristics are connected:- The thinner the border the faster the mutation rate of a cell.
- Big cells need more food than small cells.
- Big cells live longer than small cells.
- Cells that eat mutch reproduce faster.
Interactions
The slider at the right bottom controlls the speed of the simulation.The button next to it shows/hides a statistics window of all existing genomes and their ranking.
If a cell is clicked an information window is shown. Values are displayed with the following pattern:
current / calculated maximum ( original genome value )
The window hides when an empty space is clicked. The right mousebutton adds a new, randomly created cell.
Source code: Cells Cell CellInfo Genome GenomeDisplay Gui Sequences Statistics
Built with Processing
Return to BLOG