Generalizing Cellular Automata 10/07/2017

Before beginning generalizing the rules of the game of life, I began by adjusting my edge cases again. My instructor gave ideas this week for cleaning up my code and making it more generalized.

With that in mind, I got to the root of my issue with the generalized game of life, and was able to produce some stunning cellular automata using different rules.Pink Cells

Cellular automata that uses a –/12 ruleset on a single placed pixel.

rule cells diff

Cellular automata that uses a 234/123 ruleset on a single placed pixel.

I then began work on generalizing the colors of cellular automata. We still use a basic black/white idea of cells just with different color. Where cells can either be on/off. I would like to implement functionality where as cells die, they go through a series of colors before being set to the background color. This will help make each iteration more original and give more variation in different iterations.

Using a hashmap to denote colors I was able to adjust my code to iterate through it. Below is an example of such an iteration mid-way through the debugging process.

rainbow cells wrong

An interesting example of improper functionality.

Following the above mistake, it became apparent that I had forgotten to update a function to consider certain values in regard to color. A few simple tweaks helped push this program into the proper functionality, shown below.

Matisse Cells

A working example of color functionality using 1/12 ruleset.

As our program has progressed, I have found myself screenshotting the images to create example gifs of our programs functionality. Some might have said this was long overdue, but this was also the week that an export function was written for elements on the canvas.

Break

In other news there is a short break happening next week, and as such there will not be a blog post next week, even if some work does get done.

The future holds this:

20171009_102227

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s