xxxxxxxxxx
// ALSO 1603-1610
var capturee;
function setup() {
createCanvas(windowWidth, windowHeight);
capturee = createCapture(VIDEO); // opens up the camera
pixelDensity(1); // turns off oversampling ("retina display")
capturee.size(1280, 720); // in pixels
capturee.hide(); // telling the browser to hide the camera so we can draw it ourselves
}
function draw() {
background(0);
image(capturee, 0, 0, width, height);
}