Here be the code I have written as part of the Domestika Creative Coding with JavaScript course.
All the code in here was written using node v14.15.0
and npm v6.14.8
.
Before doing anything else, you will need to install dependencies:
npm install
To create a new sketch, use the following command:
canvas-sketch sketches/sketch-01.js --new
To serve an existing sketch:
canvas-sketch sketch-01.js --open
To specify a different output folder for saving sketches (using Cmd + S ):
canvas-sketch sketch-01.js --open --output=path/to/output