title: Drawing Dashed lines on HTML5 Canvas?
body: <p>I would like to draw some dashed lines on HTML5 canvas. But I couldn't find there is such a feature. the canvas path could only draw solid lines. And people have tried to use some border feature (dotted, dashed) in CSS to draw dashed lines, but they could only be horizontal or vertical. So I got stuck on this. I also found a library called <a href="http://www.rgraph.net/html5-canvas" rel="noreferrer">RGraph</a> and it could draw dashed lines. But using an external library would make the drawing really slow. So does any body has an idea how to implement this? Any help will be appreciated. </p>