xxxxxxxxxx
function setup() {
createCanvas(800, 800);
coordinates = [{ x: 50, y: 50 }, { x: 50, y: 400 }];
}
function draw() {
strokeWeight(5);
stroke(0);
for (let i = 0; i < 8; i++) {
line(coordinates[0].x, coordinates[0].y + 50 * i, coordinates[1].x + 50 * i, coordinates[1].y);
}
}