klyn.gui.windows.Painter.clearRect
method
public clearRect(x as Int, y as Int, width as Int, height as Int) as Void
Description

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.

Parameters
ParameterDescription
xLeft coordinate.
yTop coordinate.
widthRectangle width.
heightRectangle height.
Example
painter.clearRect(0, 0, 200, 120)