xxxxxxxxxx
let posX = [];
let posY = [];
let qt = 100;
function setup() {
createCanvas(700, 700);
}
function draw() {
background(255);
for (let i = 0; i < qt; i=i+20) {
posX.push(floor(random(50, width - 50)));
posY.push(floor(50));
}
//lines
for (let i = 0; i < qt; i++) {
for (let j = 0; j < qt; j++) {
stroke(0, 50);
strokeWeight(0.25);
line(posX[i], posY[i], posX[j], posY[j]);
}
}
//points
for (let i = 0; i < qt; i++) {
stroke(0);
strokeWeight(4);
point(posX[i], posY[i]);
}
noLoop();
}