DEV Community


Posted on

html canvas Stroke() redraws shape onmousemove event multiple times

my html canvas draws the same shape repeatedly inside the previous shape when I move the mouse around and causing shape clustering inside their previous shape. But 1 shape outline to be mapped out. I have tried so many solutions known to me but it did not work.

The code…

Top comments (0)