This is a JavaScript port of the https://primitive.lol app, originally created by Michael Fogleman. Its purpose is to re-draw existing images using only primitive geometric shapes.
You can find some additional (technical) information in the GitHub repository. This page acts as a small demo where you can experiment with the algorithm.