Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out

mike's Banner
mike

Age/Gender: 22, Male
Job: stupids

hello!

Newgrounds Stats

Sign-Up Date:
2/24/00

Level: 19
Aura: Neutral

Rank: Police Lieutenant
Blams: 1,103
Saves: 730
Rank #: 2,940

Whistle Status: Normal

Exp. Points: 3,794 / 4,010
Exp. Rank #: 4,484
Voting Pow.: 6.09 votes

BBS Posts: 320 (0.1 per day)
Flash Reviews: 41
Music Reviews: 0
Trophies: 0
Stickers: 0

Entry #10

Jump to Entry: [ 135 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 ]


mike

pretty pixels

Posted by mike Feb. 26, 2008 @ 3:18 PM EST

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!

ca.gif

Updated: 02/26/08 4:27 PM Log in to comment! | Share this!

The People Have Spoken

35 Comments

Feb. 26, 2008 | 3:22 PM yoshi77777 says:

LOL


Feb. 26, 2008 | 3:54 PM Scuzzfest says:

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


Feb. 26, 2008 | 4:13 PM Afro-Ninja says:

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


Feb. 26, 2008 | 4:16 PM John-The-Biter says:

Cool


Feb. 26, 2008 | 4:23 PM Phil says:

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


Feb. 26, 2008 | 4:35 PM simple-but-sandy says:

I think my brain just exploded...


Feb. 26, 2008 | 4:53 PM Yinyangpenguin says:

Woah


Feb. 26, 2008 | 5:15 PM vagins says:

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


Feb. 26, 2008 | 6:24 PM JoxskornerStudios01 says:

wow.. looks fun..


Feb. 26, 2008 | 7:03 PM WritersBlock says:

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.


Feb. 26, 2008 | 8:40 PM WolfBlitz2 says:

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


Feb. 26, 2008 | 9:10 PM Hylian-Mafia says:

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.


Feb. 26, 2008 | 9:56 PM Matt-Frozenfire says:

really neat


Feb. 26, 2008 | 11:21 PM boundless says:

self replication?

http://www.poptech.com/popcasts/popca sts.aspx?lang=&viewcastid=154

Feb. 27, 2008 | 2:52 PM mike responds:

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


Feb. 27, 2008 | 3:34 AM WolfBlitz2 says:

AH! Headache!
*Overload!*


Feb. 27, 2008 | 9:12 AM The-Super-Flash-Bros says:

Reminds me of the game of life:

http://www.math.com/students/wonders/
life/life.html

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-

Feb. 27, 2008 | 2:57 PM mike responds:

definitely!


Feb. 27, 2008 | 10:08 AM ShortStackSutin says:

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

Feb. 27, 2008 | 2:57 PM mike responds:

you should be used to that face by now :3


Feb. 27, 2008 | 1:08 PM Afro-Ninja says:

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)

Feb. 27, 2008 | 3:00 PM mike responds:

Yea, it blows my mind.

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


Feb. 27, 2008 | 3:20 PM souled says:

Wow I should change to AS3 sometime soon...


Feb. 27, 2008 | 4:37 PM mongoid says:

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


Feb. 27, 2008 | 5:08 PM RPGamer says:

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


Feb. 27, 2008 | 7:32 PM KingKrab says:

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


Feb. 27, 2008 | 11:39 PM jarrydn says:

Holy shit, this is fantastic.

Now I know the name for what it is that I want to do with my computer science degree!

Seriously, this is fascinating stuff. How do you reckon a second year computer science student would fare trying to code something similar??? :P

Feb. 27, 2008 | 11:45 PM mike responds:

It's actually pretty easy and a good exercise in programming. go for it!


Feb. 28, 2008 | 9:42 AM Goonie says:

It's a sail boat!


Feb. 28, 2008 | 8:17 PM FiqStudios says:

I wish I could do something like that in Flash, but alas, all I can do is replicate natural selection. >:3


Feb. 29, 2008 | 12:32 PM Randstein says:

just awesome....

now i REALLY want to programm that on C++....


Mar. 6, 2008 | 11:36 AM Truth says:

Truth was here


Mar. 8, 2008 | 10:14 AM Life-Stream says:

Pretty funky pixels man. It can get quite hallucinating if you stare at one of those things for quite long.

Good job.



Mar. 9, 2008 | 8:49 PM Wraith2000 says:

I don't care. Eat my s*** drawings.


Mar. 11, 2008 | 10:50 PM Ansel says:

Wow, that's pretty amazing. I wasnt aware you could do that kind of thing with Flash on such a complicated scale. I could watch them for hours :O I'm pretty sure there's a more complicated kind of program based on this same principle-- all pixels/objects are "aware" of the objects surrounding them and adjust themselves accordingly. If you move one thing, all the other things move too. Using this idea, you can create very detailed morphs/color changes.


Mar. 20, 2008 | 8:02 AM Lorkas says:

Hey, you're like mad mike from Pimp My Ride!


Mar. 29, 2008 | 12:57 AM Dools says:

Oh hey there Mike!


Apr. 5, 2008 | 9:25 PM puddinN64 says:

Shouldn't you be helping Tom With Castle Crashers?


Apr. 6, 2008 | 4:56 AM Kde777 says:

we need comment-responses-advices !..
I can make this in paint..

Jump to Entry: [ 135 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 ]