javascript - canvas and external third-party devices
曾经蜡笔没有小新2017-05-16 13:35:11
0
1
437
Connect to a third-party pen and determine whether to draw based on the status of the pen, but once the drawing method is called, it cannot be stopped. Why? I don’t know if the method is correct or not. Can anyone give me some guidance? Thanks! !
I don’t see a closed path in your code. If you have finished drawing, you should use context.closePath(); to close the path