Skip to content

A genetic algorithm which approximates an image using translucent squares

Notifications You must be signed in to change notification settings

SeanDemps/Mona-Lisa-Genetic-Algorithm

Repository files navigation

Mona Lisa Genetic Algorithm

Target Image Result after
11030
generations

This is a genetic algorithm for Processing which uses translucent squares to evolve towards recreating the Mona Lisa. It is based off of Daniel Shiffman's explanation of genetic algorithms.

The algorithm creates multiple 'PGraphics' buffers with rectangles of random size, position and color. The "fittest" (the closest match based on pixel values) graphics buffers will mate and produce the next population. The very fittest buffer is displayed on screen for each cycle. This process continues indefinitely.

About

A genetic algorithm which approximates an image using translucent squares

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published