A simulations of male and female behavior using flocking and attraction rules.
The idea is to show an interesting behavior that fish demonstrate...
Females are attracted to large males.
But if a male has a female alongside it they will choose him over a larger male who is alone.
Written in Java using Processing as a "wrapper" and some libraries created by Daniel Shiffman.
Source code: MaleFemaleKids | Boid | BoidSystem | Female | Male | scrollMale
Eventually the system tends to a few males being followed by several females.