Canvasity.clearRect

Clear a rectangular area back to transparent black.

The clip region may limit the area cleared. The current path is not affected by this clearing. The current transform at the time that this is called will affect the given point and rectangle. The width and/or the height may be negative or zero. If either is zero, or the current transform is not invertible, this does nothing.

Parameters

x float

Horizontal coordinate of rectangle corner.

y float

Vertical coordinate of rectangle corner.

width float

Width of the rectangle.

height float

Height of the rectangle.

Meta