drawit
A node.js app to take an image and render it as a line drawing
macOS Install
From the terminal, do the following:
- Install homebrew: https://brew.sh/
- Install deps:
brew install node potrace imagemagick
- Clone the repo:
git clone git@github.com:allhandsactive/drawit.git
and switch to the directory: cd drawit
- Install the node deps:
npm install
- Install the python deps:
pip3 install lxml
- Start the server:
npm start
- Go to http://localhost:3000 to begin
TODO
- Make things look a bit nicer
- Images from a URL?
- Generate gcode?
- Pull in axidraw via a submodule
- Allow hatch width to be configurable
Dependencies
- imagemagick 7
- potrace
- Cartoon script for imagemagick (modified and distributed in
bin
)
- Python 3
- eggbot_hatch.py (and deps) included in
bin
- Python lxml (installed from pip, or as a system package)
- Compile the gcode translator:
cargo b --release
systemd unit
Symlink or copy drawit.service to /lib/systemd/system and then enable and start. Assumes installation in /srv/drawit and a drawit user.