Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 792 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 792 Bytes

Pix

Turn photos into abstract art.

Road in the Winter Forest by Olga Malamud Pavlovich

Install the command-line tool with go get:

go get -u github.com/yurivish/pix/cmd/pix

Run it like so:

pix -in picture.jpg

Generate multiple outputs by sweeping the parameter space:

pix -in picture.jpg -sweep

Pix is capable of generating 8,000×8,000 outputs in around a minute.

The pixel-placement process is inherently serial and performs one nearest-neighbor search per output pixel, so the time taken depends significantly on the placement order and color distribution since those affect the size of the dynamic search tree and the shape of the frontier.

When the -sweep or -variations flags are used, variations are generated in parallel.