August 2006
Intermediate to advanced
1018 pages
34h 13m
English
CanvasRenderingContext2D.clearRect( ): erase a rectangular area of a canvas
void clearRect(floatx, floaty, floatwidth, floatheight)
x, y
The coordinates of the upper-left corner of the rectangle.
width, height
The dimensions of the rectangle.
clearRect( ) erases the
specified rectangle, filling it with a transparent color.
Read now
Unlock full access