xxxxxxxxxx
20
let capture;
function setup() {
createCanvas(320, 240);
capture = createCapture(VIDEO);
capture.size(320, 240);
capture.hide();
}
function draw() {
var c1= capture.get (width/2,height/2);
if(frameCount % 60 == 0){
background(c1);
}
//background(c1);
}