xxxxxxxxxx
21
function setup() {
createCanvas(windowWidth, windowHeight);
}
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
}
function keyPressed(){
if (key == ' '){
let fs = fullscreen();
fullscreen(!fs);
}
}
//////////////////////////////////////////////
function draw() {
background(mouseX, mouseY, 200); // replace
}