xxxxxxxxxx
function setup() {
wW=windowWidth;
wH=windowHeight;
createCanvas(wW, wH);
background(100);
}
function draw() {
strokeWeight(3);
background(0);
x=0;
for(let i=0;i<wW;i+=20){
x++;
stroke(i-(18*x),0,100);
line(i, 0, mouseX, mouseY);
stroke(i-(18*x),0,50);
line(wW-i, wH, mouseX, mouseY);
}
}