handheld devicesauf Deutsch
Valid HTML 4.01 Strict

Color Muncher

This app visualizes the concept of emergent behaviour as it occurs in a cyclic cellular automaton. The automaton has the following rules:

  • Each pixel represents a cell
  • Each cell has one of 16 colors (numbered 1 to 16), which are assigned randomly at the start.
  • The left and right edge and the top and bottom edge of the "playing field" are connected.
  • At each turn, every cell that has at least one neighbour cell with a color that is one higher changes its color to that "next higher" color. Additionally color 1 is considered "next higher" to color 16.

As you can see, the random coloring of the cells quickly turns into little same-color pools, but then spiral-like structures emerge that soon fill the entire playing field, even though the rules do not mention any spiral-like structures.

Source code


Comments

No comments yet
*Name:
Email:
Notify me about new comments on this page
Show my email
*Text:
 
Powered by Scriptsmill Comments Script
Homepage of Michael Borgwardt Navigation Navigation About me Vocation Hobby Miscellaneous Contact