+ 1
Problem with Canvas stroke()
Expected output: A blue line and a red line. Instead... https://code.sololearn.com/WpaUhS90qWnX/?ref=app
2 Respostas
+ 13
Add ctx.beginPath(); after line 9.
It resets the current path. It is used when you want to create a new path.
+ 2
Oh. Thanks Nova!