search

Home  >  Q&A  >  body text

javascript - canvas and external third-party devices

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! !

曾经蜡笔没有小新曾经蜡笔没有小新2812 days ago536

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 13:37:11

    I don’t see a closed path in your code. If you have finished drawing, you should use context.closePath(); to close the path

    reply
    0
  • Cancelreply