fogleman / primitive

Reproducing images with geometric primitives.
https://primitive.lol/
MIT License
12.35k stars 608 forks source link

Command-line usage #30

Closed arrhmne closed 7 years ago

arrhmne commented 7 years ago

How and where to use this command-line primitive -i input.png -o output.png -n 100 after install Go ?

fogleman commented 7 years ago

You need to set your GOPATH and such:

cd ~
mkdir go
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
go get -u github.com/fogleman/primitive
primitive