Draw the edges of the current path using the stroke style.
Edges of the path will be expanded into strokes according to
the current dash pattern, dash offset, line width, line join
style (and possibly miter limit), line cap, and transform.
If shadows have been enabled by setting the shadow color with
any opacity and either offsetting or blurring the shadows,
then the shadow will be drawn for the stroked lines first,
then the stroked lines themselves. Both will be blended into
the canvas according to the global alpha, the global
compositing operation, and the clip region. If the stroke
style is a gradient or a pattern, it will be affected by the
current transform. The current path is left unchanged by
stroking; begin a new path to clear it. If the current
transform is not invertible, this does nothing.
Note: to draw with a calligraphy-like angled brush effect, add
a non-uniform scale transform just before stroking.
Draw the edges of the current path using the stroke style.
Edges of the path will be expanded into strokes according to the current dash pattern, dash offset, line width, line join style (and possibly miter limit), line cap, and transform. If shadows have been enabled by setting the shadow color with any opacity and either offsetting or blurring the shadows, then the shadow will be drawn for the stroked lines first, then the stroked lines themselves. Both will be blended into the canvas according to the global alpha, the global compositing operation, and the clip region. If the stroke style is a gradient or a pattern, it will be affected by the current transform. The current path is left unchanged by stroking; begin a new path to clear it. If the current transform is not invertible, this does nothing.
Note: to draw with a calligraphy-like angled brush effect, add a non-uniform scale transform just before stroking.