To define the width of an HTML5 Canvas line, we can use the lineWidth property of the canvas context. The lineWidth property must be set before calling stroke().
Code Editor
Modified on April 8th, 2013
by Eric Rowell
To define the width of an HTML5 Canvas line, we can use the lineWidth property of the canvas context. The lineWidth property must be set before calling stroke().