color
Constructors
local col = color(255, 255, 255, 200) -- r, g, b, a
local col = color() -- equals to color(255, 255, 255, 255)
local col = color(230) -- equals to color(230, 230, 230, 255)
local col = color(230, 120) -- equals to color(230, 230, 230, 120)
local col = color(120, 160, 145) -- equals to color(120, 160, 145, 255)
local col = color():as_int32(0xFFFFFFFF) -- init from 32bit hex value
local col = color():as_fraction(0.13, 0.523, 0.87, 0.5) -- equals to color(0.13 * 255, 0.523 * 255, 0.87 * 255, 0.5 * 255)as_int32
as_fraction
Argument
Type
Description
to_int32
to_fraction
alpha_modulate
alpha_modulatef
lerp
clone
Last updated