xxxxxxxxxx
20
let capture;
function setup() {
createCanvas(390, 240);
capture = createCapture({
video: {
mandatory: {
minWidth: 1280,
minHeight: 720
},});
// capture.size(320, 240);
//capture.hide();
}
function draw() {
background(255);
image(capture, 0, 0, 320, 240);
filter(INVERT);
}