Submodule 16.1: p5.js Introduction

Getting Started with p5.js II

Setting up a p5 folder

Go to your folder location on your desktop and copy the address.

Open a cmd window/terminal and move to your desktop folder by pasting the address.

At the prompt type p5 g -b p5YourName to create your p5 folder.

Inside the libraries folder, there are 3 files.

  • p5.js is the main file which contains the information needed in order for p5.js to function
  • p5.sound.js enables p5.js to manipulate/create audio files
  • p5.dom.js enables us to interact with the HTML5 elements

Go to your P5 folder location and ...

  • create 3 sub-sub-folders,module08, module09 and module10