Skip to content

New

Description

New is a Function on Rect
Creates a new Rect with the given values.

Example
local testVariable = Rect.New(1.0, 1.0, 1.0, 1.0)
Usage

network usage: Any (Client or Server/Host)
returns: Rect
parameters:
- x (float)
- y (float)
- width (float)
- height (float)