Color(number r, number g, number b, number a = 1.0)
Constructs a new Color with given r,g,b,a components.
Parameters:
Name | Type | Description |
---|---|---|
r | number | Red component. |
g | number | Green component. |
b | number | Blue component. |
a | number | Alpha component. |
Usage
---@type number
local r;
---@type number
local g;
---@type number
local b;
---@type number
local a;
local color = Color(r, g, b, a);