This applet tries to draw ten generations in a second. The best individual is drawn in green, the worst in red, and the median individual is drawn in yellow.
The GA has a population of 50. Selection is rank based. The worst 10 are replaced each generation. Each chromosome is given a single bit mutation every generation. The chromosome is a bit string of 256 bits. Each byte in the chromosome is a coordinate (16 pairs of coordinates). The coordinate data is Gray coded for easier evolution. These settings are NOT optimal - they are just the first thing that I thought of.
Here is the source code, feel free to use it in any way you see fit. It is a total hack.