← All animations

๐ŸฆŽ Evolution by Natural Selection

No one is steering it, and no critter is trying to change. All you need are three ingredients โ€” individuals vary, offspring inherit their parents' traits, and some variants survive better than others. Run those on repeat and a population visibly adapts to its world. Below, watch a colony of critters camouflage themselves into a coloured background over generations โ€” then switch selection off and watch the magic vanish.

1. Watch camouflage evolve

Each critter carries one heritable trait: its colour. A predator finds the critters that contrast most with the background and eats them โ€” that's selection. The survivors reproduce, and offspring inherit the parent's colour with a small random mutation. Press Play and watch the colony slide toward the background colour, generation after generation. The bars below are a live histogram of every critter's colour.

Environment:
moderate 50% eaten / generation
Generation 0 Avg camouflage: โ€”

2. Is it selection โ€” or just luck?

A fair question: maybe the colony drifts to the background colour by pure chance. We can test that. Flip the toggle to remove selection โ€” now survivors are picked at random, regardless of how well they hide. Same population, same mutations, same reproduction. The only thing missing is the predator. Press Play and watch: with no selection, the colours wander aimlessly and never lock onto the background. Adaptation needs differential survival โ€” it isn't an accident.

Generation 0 Avg camouflage: โ€”
Selection ON: the fittest hide best and leave more offspring โ€” the colony adapts. Toggle it off to see the trait drift without direction.

3. The recipe โ€” three ingredients, no designer

Strip away the canvas and natural selection is almost embarrassingly simple. Whenever these three things are true of any population โ€” of beetles, bacteria, or birds โ€” adaptation follows automatically:

Put together: the traits that help survival get copied into the next generation more often, so the population shifts toward what works. Crucially, no individual chooses to change colour, and no critter strives to adapt. The mutations are blind and random; selection just keeps the ones that happen to fit. Adaptation is the statistical residue of variation filtered by survival, accumulated over generations.