HTML5 Canvas Line Join Tutorial

To set the line join style of an HTML5 Canvas path, we can set the lineJoin context property.  Paths can have one of three line joins: miter, round, or bevel.  Unless otherwise specified, the HTML5 Canvas line join property is defaulted with the miter style.

Note: If your lines are fairly thin and don't connect at steep angles, it may be difficult to distinguish different line joins.

Open in new window

Code Editor

Modified on April 8th, 2013 by Eric Rowell
comments powered by Disqus