xxxxxxxxxx
42
function setup() {
createCanvas(windowWidth, windowHeight);
}
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
}
function mousePressed() {
if (
mouseX > 0 &&
mouseX < windowWidth &&
mouseY > 0 &&
mouseY < windowHeight
) {
let fs = fullscreen();
fullscreen(true);
}
x = 0;
}
let x = 0;
function draw() {
background(25, 25);
fill(175, 10);
for (let i = 0; i < x; i++) {
circle(width / 2, height / 2, 15 + i*2);
}
// fill(25, 2);
// if (x > 15) {
// for (let i = 0; i < x; i++) {
// circle(width / 2, height / 2, (-15 + i) * 0.95);
// }
// }
x++;
}