Hi everyone,
Sorry for this very basic question, but I’ve got the following error when using the square() function of p5.js, even if using the rect() function instead works very well :
Uncaught ReferenceError: square is not defined
See the code below. Any idea?
Thanks a lot
Laurent
var canvasWidth;
var canvasHeight;
function setup() {
canvasWidth = 800;
canvasHeight = 400;
createCanvas(canvasWidth, canvasHeight);
background(255);
stroke(0);
rect(30, 20, 55, 55);
square(30, 20, 55);
}