I was trying to use a while statement in the draw loop.
I was thinking it would stop the draw loop until the mouse was released,
but it just goes into an infinite loop.
let redoLines = true
function draw() {
while (mouseIsPressed) { redoLines = true }
if (redoLines){
doLines()
redoLines = false
}
}
eak, I guess it was to nasty bit of nasty code.
So going have to use the not so nasty,
function mouseReleased() {
redoLines = false
}
Still, I was hoping my nasty code would have worked.