Tool

Simulation

Colors

Rules

Explanation

Each cell in the simulation has a state defined by a simple number. Or they are walls / out of bounds. Rules are applied to each cell in the simulation. The result may affect neighboring cells as well. If the condition (first array) is met, the changes (second array) are applied to the cell and its neighbours.

Conditions

  • * : Any cell is valid
  • . : Any cell that is not a wall or out of bounds is valid
  • X : Only active (state > 0.5) cells are valid
  • O : Only inactive (state < 0.5) cells are valid
  • # : Only wall cells are valid

Changes

  • [number] : Change the cell by the given value
  • +/- : Change the value by 0.5
  • +R/-R : Change by a random value (0 or 0.5) (all R's have the same value whily appliying to a neighbourhood)
  • * : Do not change

Import Rule

Export Rules

New Rule

Condition

Apply

Defined Rules

Visualize

Check out the code at Github