Canvas how to make an animation of lines from array of points?

Please tell me there is an array of points.
I need to make animation.
How it can be implemented ?
Here is an example of my code:

https://jsfiddle.net/Charlie34/v6r75uoq/2/
April 3rd 20 at 17:17
1 answer
April 3rd 20 at 17:19
Solution
Thank you :) - Charlie34 commented on April 3rd 20 at 17:22
And how you can increase drawing speed? - Charlie34 commented on April 3rd 20 at 17:25
@Charlie34, add a variable rate and share the steps for it:
let speed = 10
steps = Math.max(Math.abs(dx), Math.abs(dy)) / speed;
- mark.Klocko67 commented on April 3rd 20 at 17:28
@mark.Klocko67, thank you) - Charlie34 commented on April 3rd 20 at 17:31

Find more questions by tags JavaScriptCanvasAnimation