xxxxxxxxxx
29
function setup() {
createCanvas(600, 600);
frameRate(40)
background(30,120,2000);
}
function draw() {
const x = mouseX
const y = mouseY
const d = random(60, 100);
const r = random(10, 180);
const g = random(100, 200);
const b = random(80, 255);
if (mouseIsPressed) {fill(r,g,b);
//stroke("black")
//strokeWeight (20)
circle(x, y,d);
}
function keyPressed() {
if (key === " ");
background(30,120,2000);
}
}