xxxxxxxxxx
16
let capture;
function setup() {
createCanvas(400, 400);
capture = createCapture(VIDEO, { flipped:true }, captureCallback);
print("The capture is not loaded in setup:", "w:", capture.width, "h:", capture.height)
}
async function captureCallback(){
print("The capture is loade:", "w:", capture.width, "h:", capture.height)
}
function draw(){
print("The capture is still not loaded in draw:", "w:", capture.width, "h:", capture.height)
noLoop()
}