Giter Site home page Giter Site logo

primitive-gui's Introduction

primitive-gui

A simple GUI for primitve by fogleman.

Why was this made?

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.

Requirements:

How to install/use:

  • 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
  • THE APPLICATION WILL APPEAR TO FREEZE, THIS IS NORMAL. LEAVE IT BE UNTIL IT IS FINISHED PROCESSING.

GUI layout:

Example of GUI layout

Input file Path

You can point to an image via it's full path, or you can place the image in the folder containining the script.

Ouput file path

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.

Number of shapes

The amount of shapes Primitive will use to redraw your image.

Mode

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

Resize input file

The size Primitive will resize your image to when it runs it through, recommended small numbers.

Resize output file

How large the final image will be after Primitive has redrawn it.

primitive-gui's People

Contributors

dfault-user avatar s626ch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.