A simple GUI for primitve by fogleman.
I just wanted a GUI for this command-line tool, and it happens to not have a GUI version on Windows, or Linux.
It only has one on macOS.
This script most likely runs on Linux too, but I've only tested it on Windows.
- Go > https://golang.org/doc/install
- Primitive > https://github.com/fogleman/primitive (script is included if you're a super-noob)
- Python3 > https://www.python.org/downloads/release/python-399/ (Select 64-bit Windows Installer if on Windows.)
- Navigate to the folder in a terminal
- To install Primitive, run
python install-primitive.py
- Once primitive is done installing, you may delete the install script.
- To run the GUI, run
python main.py
You can point to an image via it's full path, or you can place the image in the folder containining the script.
You can point to an image via it's full path, or you can type the name of the output, and Primitive will output the file to where the script is.
The amount of shapes Primitive will use to redraw your image.
Must be a number from 0 to 8,
- 0 = Combination of all shapes
- 1 = Only triangles
- 2 = Only rectangles
- 3 = Only ellipses
- 4 = Only circles
- 5 = Only rotated rectangles
- 6 = Only bezier curves
- 7 = Only rotated ellipses
- 8 = Only polygons
The size Primitive will resize your image to when it runs it through, recommended small numbers.
How large the final image will be after Primitive has redrawn it.