Camouflage

Camouflage is a typical evolutionary adaptation. Animals that don't blend with their surroundings get picked off more easily than those that do. Survivors get to mate. When they do they pass their camouflage genes to their offspring.

But what happens when the environment changes? What happens, for example, when pollution changes the color of foliage and ponds? Suddenly the tables are turned. The camouflaged are revealed and the flashy dressers are hard to spot.

Camo customizes the Eco-0 framework.

The Camo interface allows users to alter the color of a pond. (Recall that NetLogo colors are integers in the interval [0, 140)).

Turtles have two attributes: age and visibility. A turtle ages one year each time through the model update loop.

The visibility of a turtles is the difference between its color and the color of the pond:

set visibility abs(color – pcolor)

When the turtle reaches the maximum age for turtles (I used 25), it attempts to reproduce, then dies.

Each cycle turtles are tested by selecting a random integer below 140. If the number is less than the turtle's visibility, it dies!

A turtle reproduces by attempting to select a nearby mate:

let mate one-of other turtles in-radius 5
if mate != nobody
[
   ; hatch two turtles
]

The color of the hatched turtles will be the average of the colors of the parents.

Bug Hunt

Bug Hunt is part of the models library