xxxxxxxxxx
53
function setup() {}
function draw() {
frameRate(1.5);
createCanvas(600, 400);
background(random(0, 255), random(0, 255), random(0, 255));
// draw rectangle
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(30, 20, 540, 360);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(60, 40, 480, 320);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(90, 60, 420, 280);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(120, 80, 360, 240);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(150, 100, 300, 200);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(180, 120, 240, 160);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(210, 140, 180, 120);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(240, 160, 120, 80);
noStroke();
fill(137, random(0, 255), random(0, 255));
rect(270, 180, 60, 40);
for (let i = 0; i < 1370; i++) {
strokeWeight(random(1,3))
stroke(random(0, 255), random(0, 255), 137);
noFill();
circle(random(0, 600), random(0, 400), random(7, 13));
}
}