August 2006
Intermediate to advanced
1018 pages
34h 13m
English
CanvasRenderingContext2D.strokeRect( ): draw a rectangle
void strokeRect(floatx, floaty, floatwidth, floatheight)
x, y
The coordinates of the upper-left corner of the rectangle.
width, height
The dimensions of the rectangle.
This method draws the outline (but does not fill the interior)
of a rectangle with the specified position and size. Line color and
line width are specified by the strokeStyle and lineWidth properties. The appearance of
the rectangle corners are specified by the lineJoin property.
Current implementations of strokeRect( ) clear the path as if
beginPath( ) had been called.
This surprising behavior may not be standardized and should not be
relied upon.
CanvasRenderingContext2D.fillRect(
)
|
CanvasRenderingContext2D.lineJoin
|
CanvasRenderingContext2D.rect(
)
|
CanvasRenderingContext2D.stroke(
)
|
Read now
Unlock full access