xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background("BLACK");
rectMode(CENTER);
ellipseMode(CENTER);
}
function draw() {
stroke(200);
strokeWeight(random(10));
frameRate(random(3, 3+random(20)));
let x = random(1)
fill(random(0,100), random(30,200))
if (x<0.5) {
circle(mouseX, mouseY, random(20,height));
} else {
square(mouseX, mouseY, random(20,height));
}
}
function mousePressed() {
background("BLACK");
}