home subscribe to email updates subscribe to RSS updates

When our eyes meet…

Continuing on in the Automata series and in response to a comment on the Geometry Gene Pool experiment, I’ve had a play around with some now familiar concepts, but have limited it to a triumvirate of competing entities.

Eye Experiment

There’s not much to say about this one except the idea implements a paper, scissors, rock methodology where each entity has one predator and one prey - and when the eyeballs collide, the colours of the eyes are determined by the outcome of these preferences.

ActionScript Eye Experiment

The above diagram illustrates (or attempts to!) the idea that each coloured eyeball dominates one other colour. For example, when blue and brown eyes collide, the blue eye wins the confrontation and the brown eye becomes blue.

The exception to this rule is when two eyes of the same colour meet…

ActionScript Eye Experiment

… the result is that they each become one of the two alternate colours. This prevents one colour from taking over the entire screen.

So without much further ado, check out the experiment below - the simulation starts with eighteen eyes: six of each colour, each moving in a random direction. Click the ’stats’ text at the bottom left for a colourful visualisation of who is currently winning the battle.

Let me know if you can think of how we could use this or make it better. There currently isn’t any collision detection going on when the eyes are initially positioned which can result in them getting stuck - if this happens, cross your fingers and refresh the page.


« Movember and Me
AddThis Social Bookmark Button

Related Posts:

Comments:

C4RL05 said,

November 27, 2006 @ 1:40 am

Very cool! Love the stats.

Corsarius said,

January 25, 2007 @ 12:33 pm

now this is what you call unique. kudos! :-)

RSS feed for comments on this post · TrackBack URI

Leave a Comment



« Movember and Me