December 2010
Intermediate to advanced
110 pages
2h 31m
English
CRC.stroke() — draws the current path
void stroke()
The stroke() method draws the outline of the
current path. The path defines the geometry of the line that is
produced, but the visual appearance of that line depends on the
strokeStyle, lineWidth,
lineCap, lineJoin, and
miterLimit properties.
The term stroke refers to a pen or brush
stroke. It means “draw the outline of.” Contrast this
stroke() method with fill(), which
fills the interior of a path rather than stroking the outline of the
path.
Read now
Unlock full access