xxxxxxxxxx
25
//Ambient background -BW
let roff = 0;
let goff = 20;
let boff = 50;
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
let r = noise(roff)*255;
let g = noise(goff)*255;
let b = noise(boff)*255;
roff += 0.01;
goff += 0.01;
boff += 0.01;
background(r*2);
fill(g,b,r);
rectMode(CENTER);
push();
translate(width/2,height/2,50,50);
rotate(g/50);
rect(0,0,b,b);
pop();
}