Rect(number x, number y, number width, number height)
Creates a new rectangle.
Parameters:
Name | Type | Description |
---|---|---|
x | number | The X value the rect is measured from. |
y | number | The Y value the rect is measured from. |
width | number | The width of the rectangle. |
height | number | The height of the rectangle. |
Usage
---@type number
local x;
---@type number
local y;
---@type number
local width;
---@type number
local height;
local rect = Rect(x, y, width, height);