A node.js app to take an image and render it as a line drawing
From the terminal, do the following:
- Install homebrew: https://brew.sh/
- Install deps:
brew install node potrace imagemagick - Clone the repo:
git clone [email protected]:allhandsactive/drawit.gitand 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
- Make things look a bit nicer
- Images from a URL?
- Generate gcode?
- Pull in axidraw via a submodule
- Allow hatch width to be configurable
- 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
Symlink or copy drawit.service to /lib/systemd/system and then enable and start. Assumes installation in /srv/drawit and a drawit user.