The three things selection needs
Natural selection is not a force pushing organisms towards improvement. It is an arithmetic consequence of three facts about a population, and if all three hold then the frequencies must change whether anything intends it or not. This simulation contains exactly those three facts and nothing else.
- Variation. The organisms are not identical. Some are dark, some speckled, some light.
- Inheritance. Offspring resemble their parents, because each parent passes on one of its two alleles.
- Differential survival and reproduction. Some variants leave more offspring than others. Here that happens because a badly camouflaged organism is more likely to be eaten before it breeds.
Remove any one of the three and the effect stops. Set selection strength to zero and survival stops depending on colour; the frequency still moves, but it wanders instead of trending. Remove inheritance and offspring would be random; nothing would accumulate. Remove variation, which happens by itself once an allele reaches 100 percent, and there is nothing left for selection to act on.
Watch the habitat panel while it runs and notice what does not happen: no individual organism ever changes colour. Each one lives and dies with the alleles it was born with. What changes is the makeup of the population. That distinction between individual and population is the single most common place students go wrong when writing about evolution.