scripts

Primitive Pics: A Really Cool Go Project

  • Posted on: 20 September 2016
  • By: davis

https://github.com/fogleman/primitive

This is a really neat project that allows you to create cool photographs from your input.

A target image is provided as input. The algorithm tries to find the most optimal shape that can be drawn to minimize the error between the target image and the drawn image. It repeats this process, adding one shape at a time. Around 50 to 200 shapes are needed to reach a result that is recognizable yet artistic and abstract.