/p5js-template

Template repo used to quickly create new p5.js projects.

Primary LanguageJavaScript

p5js-template

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.

Installation

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

Change Log

2024-02-29

  • Add p5
  • Add ts-check to the top of sketch.js

2024-01-30

  • Ignore Node packages
  • Add jsconfig for global p5 completion
  • Remove JS directory
  • Remove p5 files