Posts

Showing posts from March, 2022

1. How to load p5.play into code editor

Image
 There are two (2) ways to load p5.play into your code editor:  1. Use a CDN (link an online p5.play)          This method has advantages and disadvantages: no downloading files need a decent internet connection when using it If you are using the p5 web editor put this script tag into the <head> section of the index.html file: <script src="https://cdn.jsdelivr.net/gh/molleindustria/p5.play/lib/p5.play.js"></script> The <head> section should look something like this: For CDNs, the src of each <script> is the website address for each JavaScript file.   If you are not using the p5 web editor and using another code editor (like VS Code), you will need a CDN for p5 and p5.play. You can find a CDN for p5.js here:  https://cdnjs.com/ or here:  https://p5js.org/download/ 2. Download p5.play and put it into code editor directory You can download the p5.play library from here:   https://molleindustria....