Skip to content

Instantly share code, notes, and snippets.

@mattdesl
Last active June 7, 2023 06:49
Show Gist options
  • Save mattdesl/adc87ed730cfaa1df60dfbf3fe9c9d3e to your computer and use it in GitHub Desktop.
Save mattdesl/adc87ed730cfaa1df60dfbf3fe9c9d3e to your computer and use it in GitHub Desktop.
canvas-sketch + AxiDraw + pen plotter in 3 commands

canvas-sketch + pen plotter in 3 commands

Install the CLI tool globally:

npm install canvas-sketch-cli -g

Create a new folder and move into it:

mkdir my-plots && cd my-plots

Now run the following to generate a default pen plotter artwork and open it in the browser:

canvas-sketch penplot.js --new --template=penplot --open

In the browser, with the canvas in focus, hit Cmd + S or Ctrl + S to save 2 files: the PNG (for sharing on social media) and the SVG (for AxiDraw).

Now you can open the SVG in Inkscape and print it out with your AxiDraw plotter.

💡 You can see the source for the penplot template here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment