xxxxxxxxxx
let time = 0
let vel = NaN // TWO_PI / 300 assigned in setup()
let hori_count= 14
let vert_count = 17
let colors = ["#1700FF", "#00FF08", "#F3722C",
"#F68425", "#F8961E", "#F9AF37",
"#F9C74F", "#C5C35E", "#90BE6D",
"#6AB47C", "#43AA8B", "#4D908E",
"#FFA600", "#577590"]
function setup() {
createCanvas(800, 800);
noFill()
strokeWeight(3)
blendMode(SCREEN)
vel = HALF_PI + TWO_PI / 4
}
function draw() {
clear()
background(0, 0, 32);
for(let y = 0; y < vert_count; y++){
for(let t = 0; t < hori_count; t++){
y_pos = map(sin(time + t / 6 + y / cos(6)), -1, 1, 75, width -75)
x_pos = map(y, 0, vert_count - 1, 50, height - 50)
stroke(colors[t])
circle(x_pos, y_pos, cos(random(100)))
rect(x_pos, y_pos, random(120))
}
}
time += vel
}