stroke method
The
CanvasRenderingContext2D.stroke()
method of the Canvas 2D API strokes (outlines) the current or given path
with the
current stroke style.
Strokes are aligned to the center of a path; in other words, half of the stroke is drawn on the inner side, and half on the outer side.
The stroke is drawn using the non-zero winding rule, which means that path intersections will still get filled.
Implementation
external void stroke([Path2D path]);