August 2006
Intermediate to advanced
1018 pages
34h 13m
English
CanvasRenderingContext2D.fillRect( ): fill a rectangle
void fillRect(floatx, floaty, floatwidth, floatheight)
x, y
The coordinates of the upper-left corner of rectangle.
width, height
The dimensions of the rectangle.
fillRect( ) fills the
specified rectangle with the color, gradient, or pattern specified
by the fillStyle property.
Current implementations of fillRect(
) also clear the path as if beginPath( ) had been called. This
surprising behavior may not be standardized and should not be relied
upon.
CanvasRenderingContext2D.fill(
)
|
CanvasRenderingContext2D.rect(
)
|
CanvasRenderingContext2D.strokeRect(
)
|
Read now
Unlock full access