public clearRect(x as Int, y as Int, width as Int, height as Int) as Void
Restores a rectangular area to the rendering surface's background. The current fillStyle, globalAlpha and composite mode are ignored. The current transformation and clipping still apply. Nonpositive dimensions leave the surface unchanged.
| Parameter | Description |
|---|---|
x | Left coordinate. |
y | Top coordinate. |
width | Rectangle width. |
height | Rectangle height. |
painter.clearRect(0, 0, 200, 120)