Skip to main content

Color(number r, number g, number b, number a = 1.0)

Constructs a new Color with given r,g,b,a components.

Parameters:

NameTypeDescription
rnumberRed component.
gnumberGreen component.
bnumberBlue component.
anumberAlpha 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);