xxxxxxxxxx
29
let cam;
let x = 0;
function setup() {
createCanvas(640,480);
cam = createCapture(VIDEO);
cam.size(640,480);
cam.hide();
background(220);
}
function draw() {
//image(cam,0,0);
//translate(x,0);
copy(cam,x,0,1,height,x,0,1,height);
x ++;
if(x > width){
x = 0;
saveFrames();
}
//try using this in different directions
//mix it up with filters, blendmodes
}