xxxxxxxxxx
14
// variable for video element
let video;
function setup() {
createCanvas(640, 480);
/* create the video element,
with your webcam feed and
save in a variable */
video = createCapture(VIDEO);
// place video element at 0, 0 on the canvas
video.position(0, 0);
}