Genetic Bottleneck & Founder Effect (2D)

Population genetics is not just about which allele wins — it is also about how many alleles survive at all. This 2D canvas simulator runs a real multi-locus Wright-Fisher model: each generation, every individual's allele at every locus is drawn independently from that locus's current frequency in the population, the exact process that drives genetic drift in any finite gene pool. Crash the population with a statistical bottleneck, or literally split off a small founding group, and watch allele frequencies drift, fix or vanish locus by locus on the live trajectory chart while expected heterozygosity collapses on the diversity chart — then watch the population regrow toward its carrying capacity while diversity stays low, because regrowth restores numbers but not the alleles chance already erased.