Section 25.37. CanvasRenderingContext2D.stroke( ): draw the current path


25.37. CanvasRenderingContext2D.stroke( ): draw the current path

25.37.1. Synopsis

 void stroke( ) 

25.37.2. Description

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.

25.37.3. See Also

CanvasRenderingContext2D.fill( )
CanvasRenderingContext2D.lineCap
CanvasRenderingContext2D.lineJoin
CanvasRenderingContext2D.strokeRect( )



JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net