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
Parameter | Type | Description |
---|---|---|
x | number | X-coordinate of the top-left corner of the rectangle. |
y | number | Y-coordinate of the top-left corner of the rectangle. |
width | number | Width of the rectangle. |
heigth | number | Height of the rectangle. |
Return Values
This method doesn't return any value.