xxxxxxxxxx
32
// Screen Burn by EL Putnam is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
let h1 = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
colorMode(HSB, 360, 100, 100, 100);
frameRate(60);
background(h1, 20, 50);
}
function draw() {
background(h1, 20, 50, 1);
noStroke();
fill(random(10));
rectMode(CENTER);
rect(random(width), random(height), random(20));
stroke(10);
noFill();
for (let i = 0; i < 20; i++){
circle(mouseX, mouseY, 5*i);
}
h1+=1;
if (h1 == 360){
h1 = 0;
}
}
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
}