Tuesday, 9 December 2008

Genetic Programming: Evolution Of The Mona Lisa

Roger Alsing decided to play around a bit with genetic programming. He created a small program that keeps a string of DNA for polygon rendering. The procedure is quite simple:

Setup a random DNA string,
Copy the current DNA sequence and mutate it slightly,
Use the new DNA to render polygons onto a canvas,
Compare the canvas to the source image,
If the new painting looks more like the source image than the previous painting did, then overwrite the current DNA with the new DNA,
Repeat from 1.

Now to the interesting part. Could you paint a replica of the Mona Lisa using only 50 semi transparent polygons? Here's the result.

0 comment(s):