xxxxxxxxxx
25
let capture;
let amt;
let total = 8;
function setup() {
createCanvas(640, 480);
capture = createCapture(VIDEO);
capture.hide();
imageMode(CENTER);
amt = width / total;
}
function draw() {
tint(255, 120)
for (let i = 0; i < total; i++) {
push();
translate(amt * i, height / 2);
rotate(i * 30);
scale(-1, 1);
image(capture, 0, 0, width/4, height/4);
pop();
}
}