let cap;
function setup() {
createCanvas(600,600);
cap = createCapture(VIDEO);
//cap.hide();
textSize(50);
fill(255,0,0);
}
function draw() {
background(240);
image(cap, mouseX, mouseY, 500,500);
//filter(POSTERIZE, 3);
//filter(INVERT);
filter(GRAY);
// image(cap, random(255), random(255), random(255), random(255));
}