title: Drawing the MS Paint Triangle tool using HTML5 Canvas and Javascript
body: <p>I'm new at javascript and Canvas and wanted to know how to draw triangles on the canvas by clicking and dragging the mouse like we do in MS Paint, where the size of the triangle depends on how much the user drags.</p>