How can I get a delay per every draw point in this programm? Btw. i am using p5.js
function points_oben() {
for (let a = 0; a < koords.length; a++) {
setTimeout(function() {
for (var i = 0; i < koords.length; i++) {
strokeWeight(10);
stroke('blue');
point(koords[i].xkoord, koords[i].ykoord); }
}, 3000);
}
}
When the function run it delays 3s and then all points and not only point by point are drawn.