function draw(p8g){
const { background, noStroke, stroke, fill, ellipse, noSmooth, text, textSize, push, pop, line} = p8g;
const {sin, cos, tan} = Math;
let count = window.count
if( window.setup == true){
window.setup = false
window.count = 0
background(0)
}
background(0,0,0,alf);
stroke(200,100,0,77);
let a = [];
for (let x = 0; x <= W; x += W) {
for (let y = -50; y < W + 50; y += 10) {
let X = noise(y + count) * 200 + x - 99;
let Y = tan(sin(y + count * 1.7)) * 99 + y - 50;
a.push([X, Y]);
for (let i = 0; i < a.length; i++) {
let A = a[i][0];
let B = a[i][1];
if (dist(X, Y, A, B) < (W-threads)) rotated?line(Y , X, B, A ) : line(X, Y, A, B )
}
}
}
window.count += .01
}