VARIATION · INHERITANCE · SELECTION
Natural selection lab
A · Color-dependent survival
N = 120B · Color-neutral control
N = 120Inspect inheritance
Initial variationSurvival in this background: 90%
How does the trait share change?
The dots show inherited types, not moving animals. Their survival chances come from the rules below, not pixel colors.
Populations change across generations
Start with heritable differences. If two types have different survival chances, they can leave different numbers of offspring. Individuals do not decide to change color: the population’s composition changes as descendants replace their parents. Here, inheritance is a deliberately simple one-trait asexual model, with no diploid dominance, mating, migration or real species data.
Try a light background, then a dark one. Compare the selection group with the color-neutral control. The control can still change by chance. With mutation off, an absent type cannot reappear; a completely extinct population stays extinct even if mutation is enabled. More favorable survival does not guarantee that every finite run increases in population or in the favored trait.
The same seed starts both groups with the same variation and couples their random draws until their populations diverge. A single pair is an illustration, not evidence about a real organism. Try multiple seeds and distinguish a systematic rule from chance variation. Colored backgrounds and organism positions are illustrations; survival uses the explicit probabilities.
OpenStax: understanding evolution · Population genetics and chance