xxxxxxxxxx
25
let bohemians;
function setup() {
createCanvas(windowWidth, windowHeight);
bohemians = createVideo(['assets/bohemians.mp4', 'assets/bohemians.mp4']);
bohemians.loop();
bohemians.hide();
}
function draw() {
background(50);
image(bohemians, mouseX,mouseY, mouseY);
filter(GRAY);
image(bohemians,windowWidth/2, windowHeight/4);
}
function mousePressed() {
let fs = fullscreen();
fullscreen(!fs);
}
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
}