summer-term 2020
University of Applied Sciences Augsburg, Faculty of Design, https://www.hs-augsburg.de/Gestaltung.html
teaching stuff: Slawa Gurevich, Martin Spengler, Benjamin Stechele, Andreas Muxel, Daniel Rothaug
In the end there are a thousand ways to code with p5.js - let's stick to the following toolchain to dive into our course so that it will be easier to support each other.
Download and install Visual Studio Code (free), https://code.visualstudio.com
P5.js basically is Processing in a Browser.
We neatly packed this into the repository you will download in a later step. More Details on P5.js:
- P5.js, https://p5js.org
- P5.js VS Processing, https://github.com/processing/p5.js/wiki/Processing-transition
- Libraries, https://p5js.org/libraries/
- Learn, https://p5js.org/learn/
In Visual Studio Code click the Button with the 4 squares "Extensions", search for and "Install" the extension.
- p5js Snippets
- JSON Tools
- Live Server
- Beautify
- Only if REALLY needed: German Language Pack for Visual Studio Code
Tutorial on Extensions: https://www.youtube.com/watch?v=PmdbndOoKq4
We strongly recommend Google Chrome, https://www.google.com/chrome/
How to set Chrome as your default browser for Live Server in Visual Studio Code:
- Install extension 'Live Server' (see instructions above)
- On Windows Go to File > Preferences > Settings
- On Mac Go to Code > Preferences > Settings
- Search for "browser"
- In settings "Live Server > Settings: Custom Browser" choose "Chrome"
We packed a bunch of examples from this course as well together with the files needed for p5.js in a folder structure on GitHub. We will update this repository from time to time to correct bugs or add new examples. There are two ways to get all these files.
- PREFERRED: In Visual Studio Code click the "Files" Icon, then "Clone Repository", paste the Repository URL https://github.com/HybridThingsLab/course-interaction-design, hit Enter, create a folder for our files and select it as download location.
- Fallback: Download the repository from the GitHub Website (https://github.com/HybridThingsLab/course-interaction-design/archive/master.zip). Use button "Clone or Download" on the top right side of the page, download the ZIP and extract it.
Whenever we will make a update to the repository, you can pull those changes to your local folder structure:
- Click the "Source Control" icon
- Click the three little dots above the file list
- Click "pull"
- In Visual Studio Code klick the "Files" Icon and navigate to "Block_I > p5js > examples > template"
You will see some files but these are the most important:
sketch.js
: Thats where you codeindex.html
: Thats where you can see your result
- Click
sketch.js
to open it in the code editor - Right klick
index.html
> "Open with Live Server" to open it in your browser - If asked, allow the html to access the internet
Please create your own code folder somewhere outside our code folder and copy one of the example folders over. You should not chage anythinig inside our code structure because it may interfere with future updates that we may do on the code if you use GIT (Collisions)
We structured our course in three "Blocks", static, interactive and physical. Fore some Blocks there also is a Readme in the corresponding subfolder, for example in Block_III.
- beginner P5.js tutorials by Daniel Shiffmann on TheCodingTrain, https://thecodingtrain.com/beginners/p5js/
- Introduction p5.js: https://www.youtube.com/watch?v=8j0UDiN7my4
- Comparing p5.js and Processing (Daniel Shiffmann)
Note: in the tutorials another editor is used. But currently Shiffmann also uses Visual Studio Code.
- Book 'Generative Gestaltung', http://www.generative-gestaltung.de/2/
- Programming Design Systems by Rune Madsen, https://programmingdesignsystems.com