Home > Back-end >  Web design canvas use the mouse to draw a rectangle
Web design canvas use the mouse to draw a rectangle

Time:11-14

If want to achieve on the canvas with the mouse drag and drop and then come out a rectangle, would need two canvas

CodePudding user response:

You are drag and real-time display of changing rectangular box? Rectangle changes to erase the last draw, so it's best to the mouse to click the save a canvas, erase every time is to use the save the canvas to replace the last canvas, then drag when the end of a fixed place,

CodePudding user response:

Actually use different or way to draw graphics, exclusive or drawing can erase again, but this has limitations, as the canvas,

CodePudding user response:

reference 1st floor ooolinux response:
are you drag while real-time display of changing the rectangular box? Rectangle changes to erase the last draw, so it's best to the mouse to click the save a canvas, erase every time is to use the save the canvas to replace the last canvas, finally end drag to draw a fixed,

Right, I just want to realize this, so how much a canvas to achieve?

CodePudding user response:

A canvas for recovery, one used to paint,
  • Related