search

Home  >  Q&A  >  body text

javascript - canvas design mouse drawing function draws multiple parallel colored lines in one stroke

1. Canvas design mouse drawing function to draw multiple parallel colored lines in one stroke
2. Tried adding drawing oCg.beginPath(); to the mouse event, but the event will be overwritten.
3. Add the same duplicate canvas, but the canvas is covered.

PHP中文网PHP中文网2728 days ago1249

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-06-13 09:26:08

    Call save() before drawing and restore() after finishing

    reply
    0
  • Cancelreply