Skip to main content

RenderingContext:fill_rectangle()

RenderingContext:fill_rectangle(x, y, width, height)

This method fills a rectangular region using the brush set in the rendering context.

Parameters

ParameterTypeDescription
xnumberX-coordinate of the top-left corner of the rectangle.
ynumberY-coordinate of the top-left corner of the rectangle.
widthnumberWidth of the rectangle.
heigthnumberHeight of the rectangle.

Return Values

This method doesn't return any value.

See Also