This is a template for creating new p5 projects. This template is based on the p5 + VS Code setup as published by Stef Tervelde and Raphaël de Courville, which assumes that p5 will be installed using Node.js.
To install p5 to use with this template, first check that Node.js is installed:
node --version
If Node returns the version, make sure you have navigated to the project directory and initialize a new Node package:
npm init -y
Then, download & install the p5 package:
npm install @types/p5
- Add p5
- Add ts-check to the top of sketch.js
- Ignore Node packages
- Add jsconfig for global p5 completion
- Remove JS directory
- Remove p5 files