Saturday, June 4, 2011

Turmites infestation has just broken out

No, not termites. Turmites. That's a new cellular automaton which I've just added to LivingCells. It is quite different from other cellular automata in the app. Other automata have fields of cells, which live, and this one has a field of static cells. However, there are these turmites, which move on the field and change cells.

How they affect a cell depends on the color of the cell and on the turmite state. All the actions are specified in the rule, and every combination of a cell and a turmite state has its set of actions. Actions which a turmite performs are as follows: it sets the cell to a new color, changes its state, makes a turn and walks one or more steps in the current direction. The results are some cool patterns.

One other nice thing about this cellular automaton is that it suits live wallpaper very well. Turmites eat the same amount of device resources regardless of the cell size or speed. I fact, it is better to set high speed for turmites and small cell size, this automaton sits particularly well with these settings. I've even made a new "very fast" speed setting for this.

So, hope you like this new automaton, and as always, if you have any suggestions, feel free to leave them in the comments.