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.