A polargraph controller
Melt is my response to the awesome and complete Polargraph Controller made by Sandy Noble. It's a way to interact with the Polargraph Server in a flexible way. Also draw from code as if it were p5.js/Processing
Run any of these to control de plotter from code. You can use the included editor to comfortably write or open the inspector with CTRL/CMD+I for wild testing. Standard JavaScript applies.
line(x1, y1, x2, y2)
ellipse(x, y, radio, resolution = 100)
Resolution is an optional parameter. A lower number will draw faster will less faces. Can also be used to draw an hexagon if set to 6, triangle if 3, etc.
beginShape();
vertex(x1, y1);
vertex(x2, y2);
endShape();
from = new Victor(0, height);
controlPt = new Victor(0,0);
to = new Victor(width, 0);
curve(from, controlPt, to)
textSize(n);
Default: 2
textFont(fontName);
Deafult: 'futura'
text('Hello World', xPos, yPos);
Available fonts to load in textFont(): astrology, cursive, cyrillic, futural, futuram, gothiceng, gothicger, gothicita, greek, japanese, markers, mathlow, mathupp, meteorology, music, scriptc, scripts, symbolic, timesg, timesi, timesib, timesr, timesrb
My main goal when making Melt was to create a way to write creative code as if it were p5.js or Processing, being able to import a sketch and make minimum changes for the plotter to make the drawing. It might also be the best way for a slow, relaxed debugging.
Head to the releases page and select your Mac or Windows flavor. (Linux on the way)
Prerequisites: Node, npm, yarn (if you want to build)
- Clone / Download This Repository
- In a terminal/console window
cd path/to/repo
- Download dependencies with
npm install
- To run the app
npm start
- To build the app
npm run build
(will trigger yarn dist)
- polargraph_server_a1
- Electron
- semantic-ui
- fabric.js
- Ace code editor
- Victor
- Vue
- BezierJs
- jquery
- hershey text
The app structure is very basic. It's a website wrapped by Electron. main.js
starts the process, it's mostly electron stuff. client/index.html
holds the DOM elements. client/melt.js
is where everything happens. The code is pretty straight forward, go ahead and have a happy hacking.
This software is not even Alpha. There's no warranty, but also it's harmless. Feel free to suggest improvements, submit issues or pull request new features/fixes
You are most invited to open the developer console, poke around, break things and hack your way.
made by Gonzalo Moiguer