xxxxxxxxxx
24
let R,G,B;
function setup() {
// let WIDTH = windowWidth;
// let HEIGHT = windowHeight;
let WIDTH = 600;
let HEIGHT = 600;
createCanvas(WIDTH, HEIGHT);
frameRate(12);
}
function draw() {
R = random (0, 255)
G = random (0, 255)
B = random (0, 255)
background(R,G,B);
}
function mousePressed() {
let fs = fullscreen();
fullscreen(!fs);
}