I want to draw a line in canvas dont know which event i should use?
I want to draw a line in canvas I want to click on a particular area and then drag to ending area to draw line between starting and ending cordinates I am not sure which event i should be using. I will first click on a particul开发者_如何学Car location in canvas and then drag my mouse to the ending location. To which i need the line to be drawn. Can anybody please suggest.
I am sure you can figure it out having a look here: http://www.webtoolkit.info/javascript-drag-and-drop.html
精彩评论