dotted stroke in <canvas>

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2011-01-02T01:56:35Z Indexed on 2011/01/02 5:53 UTC
Read the original article Hit count: 209

Filed under:
|
|

I guess it is not possible to set stroke property such as CSS which is quite easy. With CSS we have dashed, dotted, solid but on canvas when drawing lines/or strokes this doesn't seem to be an option. How have you implemented this?

I've seen some examples but they are really long for such a silly function.

For example:

http://groups.google.com/group/javascript-information-visualization-toolkit/browse_thread/thread/22000c0d0a1c54f9?pli=1

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html5