From:  Eric Shepherd <>
Date:  21 Jan 2015 01:50:10 Hong Kong Time

Re: Canvas question: dotted/dashed lines?


What issues do you have with the canvas documentation? We literally just (within the last week or two) finished a massive overhaul, updating the content, writing docs for everything in the canvas rendering context, and so forth.

The reason you can’t find anything about how to draw a stroked line in a canvas is because there isn’t support for that at this time. You have to create an appropriate canvas pattern object and use that.  For instance:

I hope they update the strokeStyle property to support “dashed” and so forth, though.

Eric Shepherd
Developer Documentation Lead

On January 20, 2015 at 5:37:19 AM, Jeremy ( wrote:

The canvas element is pretty poorly documented.