Product Information
What is Primitive?
Primitive is a command-line application written in Go, inspired by Roger Alsing's remarkable work. It recreates images using geometric primitives such as ellipses, triangles, and rectangles.
Features
- Optimization via hill climbing or simulated annealing (hill climbing with multiple random shapes performs nearly as well as annealing and is faster)
- Scanline rasterization of shapes in pure Go (preferred for implementing the following functionalities)
- Optimal color computation for each shape based on affected pixels (direct color calculation, unoptimized)
- Partial image differencing to speed up scoring (only pixels that have changed need consideration)
- Anti-aliased output rendering
How to use Primitive?
Primitive is a Go-based command-line application that recreates images using geometric primitives like ellipses, triangles, and rectangles, transforming complex images into artworks made of simple shapes.
Core Functions of Primitive
Image Processing
Usage Scenarios of Primitive
- Transform images into artistic styles composed of geometric primitives.
- Create images with an abstract artistic feel.
- Apply stylization to existing images.
Common Questions about Primitive
What does Primitive do?
How do I use Primitive?
What are the core features of Primitive?
What are the use cases for Primitive?





















