Primitive Pictures is an image processing command-line tool written in Go that reproduces images using geometric primitives (triangles, rectangles, ellipses, polygons, etc.). The core algorithm is iterative and “hill-climbing”: given a target image, it repeatedly finds the best single shape to add that will reduce the error between the current approximation and the target image, then draws that shape. Over time (e.g., adding 50-200 shapes) the output becomes an abstracted version of the input image—recognizable, artistic, and often visually striking. ...