This repo contains the source code and images for a two-part blog post, "Pen Plotter Art & Algorithms." You can read the posts on my blog:
If you want to run from source, make sure you have [email protected]
and [email protected]
or higher. Then clone this repo, cd
into it, and npm install
to grab the dependencies.
Once the dependencies are installed, you can run one of the demos:
# the default penplot print template
npx penplot code/test-print.js --open
# simple concentric squares
npx penplot code/squares.js --open
# Delaunay triangulation example
npx penplot code/triangulation.js --open
# Patchwork (fractures with convex hull + k-means clustering)
npx penplot code/patchwork.js --open
MIT, see LICENSE.md for details.