Run this command in the terminal
npm install
Run sketch file
canvas-sketch sketch.js
Save animations to MP4 file
canvas-sketch animation.js --output=tmp --stream
Save animations to GIF file instead
canvas-sketch animation.js --output=tmp --stream=gif