Now the moment of truth. Let’s learn a little bit more about what p5.js is and what it can do. This video will give you a brief introduction to p5.js and provide a bunch of examples
Throughout this course we will be drawing heavily from Daniel Shiffman’s Introduction to Programming with p5.js tutorials on YouTube. They are very well considered and he’s a pretty funny guy. To get us started, here’s the first video in the series
Using the code below, see if you can change the size of the rectangle to be centered in the window and be twice as big.
function setup(){
createCanvas(300, 100);
background(220);
rect(20,40,80,30);
}