August 2006
Intermediate to advanced
1018 pages
34h 13m
English
CanvasRenderingContext2D.rect( ): add a rectangle subpath to the path
void rect(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 adds a rectangle to the path. This rectangle is in
a subpath of its own and is not connected to any other subpaths in
the path. When this method returns, the current position is (0,0).
CanvasRenderingContext2D.fillRect(
), CanvasRenderingContext2D.strokeRect(
)
Read now
Unlock full access