00:00
00:00
mike
hello!

Mike Welsh @mike

Age 39, Male

stupids

Penn State

San Diego

Joined on 2/24/00

Level:
23
Exp Points:
5,598 / 5,880
Exp Rank:
8,641
Vote Power:
6.47 votes
Rank:
Police Captain
Global Rank:
3,970
Blams:
1,268
Saves:
1,004
B/P Bonus:
16%
Whistle:
Normal
Trophies:
14
Medals:
916
Supporter:
10y 7m 13d
Gear:
1

pretty pixels

Posted by mike - February 26th, 2008


I've been reading a lot about cellular automata, which is a fancy name for pretty squares that change color. Each frame, the color of a square is determined by a simple rule based on the previous colors of itself and its neighbors. Certain rulesets create really complex and fractal-like patterns.

I started playing around with rendering some in Flash. Here's the result:

cylic cellular automaton (click to start a new pattern)
source

Reminds me of those early 90's screen savers. :)

The interesting thing about these automata is that they are actually carrying out computation. The rule by which the cells change can be viewed as hardware, and the initial state of the cells is software. For example, Rule 184 can be used to describe traffic flow. Rule 110 is even a universal Turing machine, meaning it can be functionally equivalent to any computer! Some of them can even self-replicate.

If this sounds interesting to you, you should take a look at Stephen Wolfram's A New Kind of Science, which is free to read online. He's spent years researching cellular automata, and has discovered tons of interesting properties about them. He even proposes that the laws of physics could be based on cellular automata -- that the fundamental basis of physics is not matter and energy, but computation and operations on information!

pretty pixels


Comments

LOL

Awsome looking, complicated as hell to me but awesome? You really like to experiment don't you!

Excuse me while I try to find the remaining pieces of my brain on the floor

Cool

Hey, I've played that square rendering (thing) somewhere P:

Woah

this is why my CS degree never got me anywhere... my brain doesn't work like that! :)

I could just sit and stare at those bright colours for days.
I haven't got a clue what they're about or how they work, they're just mesmerising.

geek speak man
it is a language of it own even though spoken in english

Wow you lost me at reading, but that is pretty neat about Cellular Automata. I would never think the change in cells could be viewed as hardware very interesting. I guess this is leading me to read the A New Kind of Science book.

really neat

self replication?

<a href="http://www.poptech.com/popcasts/popcasts.aspx?lang=&viewcastid=154">http://www.poptech.com/popcasts/popca sts.aspx?lang=&viewcastid=154</a>

pretty crazy! i, for one, welcome our new 3d printer overlords.

AH! Headache!
*Overload!*

Reminds me of the game of life:

<a href="http://www.math.com/students/wonders/life/life.html">http://www.math.com/students/wonders/
life/life.html</a>

One of the first things I did when I was learning BASIC all those years ago was to replicate it. Of course its a pretty simple ruleset, and its only got 2 states.

I love that AS3 affords us the power to play around like this, producing visual representations of concepts that other languages have been able to manage for years. Hopefully it'll inspire a whole new generation of flash programmers to look deeper into programming history and theory, and maybe even find practical gaming applications.

Also, pretty colours 0.o

Tom-

definitely!

User...image...creepy...

you should be used to that face by now :3

I suppose I should add that the basic concept of cellular automata is interesting and seems quite logical, but I can't quite seem to stretch the concept of pretty pixels into a turing complete computer machine (rule 110)

Yea, it blows my mind.

http://rendell-attic.org/gol/tm.h tm

Wow I should change to AS3 sometime soon...

Fascinating stuff! I'll definitely give this a read. Nice job on creating a working prototype using flash's BitmapData.

Humm.. sounds really interesting I'll defenetly check it out

yeaaaa so um... its sumthing about squares....rit?, also vveerrrryyyy trippy

More Results