xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(89, 89, 89);
}
function draw() {
for (j = 0; j < 40; j++) {
for (i = 0; i < 20; i++) {
let x = i * 30;
let y = j * 30;
strokeWeight(0.5);
// fill(209, 87, 40);
// rect(random(x) * -50, sin(i) * j * 50, j, j);
// rect(random(x) * 25, -sin(i) * j * 40, j, j);
let c = color('hsl(160, 100%, 50%)');
ellipse(random(x) * -50, sin(i) * j * 50, j, j);
ellipse(random(x) * 25, -sin(i) * j * 40, j, j);
fill(c);
stroke(223, 115, 115);
strokeWeight(300);
}
}
let b = 20;
let w = width / b;
for (k = 0; k < 40; k += 1.5) {
for (n = 0; n < 40; n += 1.5) {
strokeWeight(30);
erase();
let x = n * w * 1;
let y = k * w + w * 1;
// translate(random(width),100);
triangle(3 + x, 7.5 + y, 5.8 + x, 2 + y, 8.6 + x, 7.5 + y);
// triangle(x, y, x, y, x, y);
noErase();
}
}
}