xxxxxxxxxx
let size;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
strokeCap(ROUND)
for (i = 0; i < width; i+=size) {
for (j = 0; j < height; j+=size) {
//c = (random(0, 1))
R = random(0, 245)
G = random(0, 93)
B = random(0, 182)
w = 1.5
rez = 0.01
o = random(500, 100) // opacity 1
oo = random(270, 255) // opacity 2
c = noise(i*rez, j*rez, 0.0002001)
//print(c)
size = 80
if (c < 0.3) {
stroke(R, G, i*B, oo)
strokeWeight(w)
line(i, j, i, j+size)
} else if (c < 0.4) {
stroke(R, G, B)
strokeWeight(w)
line(i, j, i+size, j)
} else if (c < 0.6) {
stroke(i*G, 1.5*w, B, 555)
strokeWeight(w)
line(i, j, i+size, j+size)
stroke(0.5*i*R, i*G, B, 20)
line(i, j+size, i+size, j)
fill(R, G, B, 20)
rect(i, j, 10)
} else if (c < 1) {
stroke(R, G, B, o)
strokeWeight(w)
line(i, j+size, i+size, j)
//line(i, j, i+size, j+size)
}
}
}
}