xxxxxxxxxx
22
function setup() {
createCanvas(window.innerWidth, window.innerHeight);
}
function draw() {
clear()
background(0);
for(let y = 0; y < height; y+= 100){
for(let x = 0; x < width; x+= 15){
drawLine(x, y, 'fff')
}
}
}
function drawLine(w, h, color){
stroke(color)
strokeWeight(0.1);
line(mouseX, mouseY, w, h)
}