Canvasity.fillRect

Fill a rectangular area.

This behaves as though the current path were reset to a single rectangle and then filled as usual. However, the current path is not actually changed. 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 but not zero. If either is zero, or the current transform is not invertible, this does nothing.

Parameters

x float

Horizontal coordinate of a rectangle corner.

y float

Vertical coordinate of a rectangle corner.

w float

Width of the rectangle.

h float

Height of the rectangle.

Meta