π¨color
color_rgb(r: number, g: number, b: number)
structure:
Name
Type
Description
r
number
red
g
number
green
b
number
blue
a
number
alpha
hex
string
hex
override_alpha:
<color>:override_alpha(alpha: number):
color
returns the current color with a different transparency value
using:
local col_f = color_rgb(255, 255, 255)
local col_s = color_rgba(255, 255, 255, 255)
local r, g, b, a, hex = col_f:r(), col_f:g(), col_f:b(), col_f:a(), col_f:hex()
Last updated