function setup() {
createCanvas(400, 400);
video=createCapture(VIDEO);
video.hide();
}
function draw() {
background(220);
image(video,0,0);
}
output:-
function setup() {
createCanvas(400, 400);
video=createCapture(VIDEO);
video.hide();
}
function draw() {
background(220);
image(video,0,0);
}
output:-
Hi, it seem that it can’t load your libraries…
Here is the best way using p5.js editor offline.
Best Regards,
Yhlas Kerimov.