i cant get the download version to work when i load the index.html i dont see the canvas at all setup{ createcanvas(400,400) } draw{ background(220); rect(5,5,40,30); }
everything else is vanilla what it my problem
Edit:
narrowed it down to p5.sound.js stick up on loading
The code snippet you’re posting has syntax errors. Computers are picky. It has nothing to do with p5.sound.js. If you fix the syntax errors, your sketch will run:
// The function keyword has to be present.
function setup() {
// Case is important, createcanvas won't work.
createCanvas(400, 400);
}
function draw() {
background(220);
rect(5, 5, 40, 30);
}
I see several syntax errors, such as: missing the keyword function, missing () after the function names, and incorrect case on createCanvas(). Can you share your code? I am guessing the syntax errors are breaking your program …