A basic elementary cellular automaton simulator. Choose any rule you like, choose an initial state you like (or let one rule spill into the next by changing it mid-simulation) and watch the beautiful patterns.
You can set the resolution and pixel size with command line arguments, 500x250x3 is default when no arguments are provided, following examples are rule 110.
>ElementaryCellularAutomata.exe 80 80 10
>ElementaryCellularAutomata.exe 250 250 3
>ElementaryCellularAutomata.exe 900 900 1
- TAB - Open / close console
- CTRL - Run / pause the automaton
- R - Shortcut to reset
- help - Show list of commands, shortcuts and interesting rules
- setrule - Set the automaton rule, range 0-255
- getrule - Show current rule
- setstate - Set the initial state, can be left, right, center or random, remember to reset afterwards
- reset - Clear the simulation and revert to initial state
- clear - Clear the console
- wrap - Enable / disable wrapping around the edges of the simulation
Rule 73 from initial state center:
2023-08-02.11-43-34.mp4
Rule 73 spill into rule 90:
2023-08-02.11-47-46.mp4
Rule 90 from initial state center:
2023-08-02.11-51-11.mp4
The following examples (in 900x500x2) are a very nice demonstration of how different automata interact. This is rule 184 from a random initial state spilling into rule 90. Notice how the proximity of lines seeding rule 90 affect its pattern and the perpetual cycle of an increasing state of chaos before "resetting" back to a more stable state.