Giter VIP home page Giter VIP logo

frescogui's Introduction

FrescoGUI

Welcome! This is a GUI to use with an axidraw to draw Fresco json files.

Setup

Clone this repository, then, On linux: ./setup.sh On windows, double click setup.bat

Running

Add your sketch somewhere within this directory or its subdiresctories. Make sure it imports the p5.Fresco utils.js and shapes.js scripts at the very least.

On linux: ./AxiFresco On windows, double click FrescoGUI.bat

Then navigate to whatever sketch you want to draw. When all is fine, press a. A new tab should open with your drawing previewed on the left. Firefox and Chrome may block the new tab so make sure to allow it.

If you want to use the GUI with a pre-existing file, simply lauch the axidraw.html file right after opening the server and load your file in the option pannel.

Architecture notes

There is an HTML server which handles all html requests and which will allow running the p5.js/p5.Fresco sketches and all. This one talks on port 8000. Then there is a Flask python server which handles requests from the html page. It talks on port 5000. The Flask server will q commands, q that is then read by a dequeueing thread which owns the axidraw manager.

frescogui's People

Contributors

nielspichon avatar

Watchers

 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.