by DougHaber · 12y ago · 0 comments
I made a quick color life a few years ago. I wanted the rules to be simple like life itself, so this is what I came up with:
* Each cell has a color attribute. When generating the initial board, colors are randomly assigned.
* When a new cell is created it inherits the most prevalent color of the surrounding cells, or if there is a tie, any one of the the top colors may be used.
(Randomly assigned colors aren't filtered, so it is possible for dark cells to exist that are the same color as the background.)
Here is the result: http://www.node99.net/content/color_life/index.html
I had an awesome idea a long time ago that is almost the same as that, but I was a CS noob and tried it in Java...
can you throw that on Github with a license?
http://www.node99.net/content/nlife/nlife-canvas-color.tgz
I'm fairly certain from watching it that there is a bug in the selection of the most dominant color, since sometimes a color that died off manages to come back. Anyway, if you make it do anything interesting, please share. I'd definitely like to see.