xxxxxxxxxx
let col = ["#ffff00","#00ffff","#0000ff","#ff1493"];
function setup() {
createCanvas(800, 600);
background(0);
stroke(0,0,0);
let height1 = 100; //ボーダーの間隔
for(let i=0; i<width; i+=height1*2){
strokeWeight(height1);
stroke(34,85,85);
line(i, 0, i,height );
}
for (let i = 0; i < 130; i++) {
let x = random(800);
let y = random(600);
let diameter = random(y/7.0);
let n = int(random(col.length));
fill(random(0, 255), random(127, 255), random(127, 255), 127);
stroke(col[n]);
strokeWeight(2);
rect(x, y, diameter, diameter,20);
}
}