Evolving triangles to resemble images

This program slowly changes the position and colour of shapes to make them look more like a target image using a generic algorithm.

Fitness is calculated by checking every single pixel in the 900x600 image and taking the mean Euclidian distance between the colours the pixels in the current image and their target colour in 3D RGB colour space.

A genetic algorithm is used to minimize this fitness value.

At each generation, we do the following: