Protective polymorphism in populations of computer-simulated moth-like prey