A grid full of individual cells. Each with a color value chosen at random. Overall, there are 12 different colors that wrap around.
Suddenly, each cell becomes a prey, its hunter, is the ‘next’ color in the rules:
1 -> 2 / 2 -> 3 / n -> n+1 / 12 -> 1
If everything goes according to the plan, a curious linear and cyclical pattern is formed. But then, once in a while, rules change, and chaos appears. This chaos, is the prey fighting back. It doesn’t mean the prey will eat the hunter, but it means that a prey may survive an iteration, 50⁄50 odds. The linear cyclical pattern is broken, the result is a more organic and natural looking spiral.
Inspired by Cyclic Demons Theory.
You can find the code at GitHub.
Made in C++, with SFML 2.0, and Java using AWT + Swing.