xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
//background(100);
}
//funzione che viene eseguita 30 volte al secondo.
function draw(){
background (100, 60, 255, 255);
for(let x = 0; x < width; x = x + 30){
stroke(70, 0, 0, map(x, 0, width, 0, 255));
line (mouseX, mouseY, x, 1);
stroke(30, 50, 20, 200);
line (x, height, mouseX, mouseY);
stroke(30, 50, 20, 200);
}
//speriamo bene
}