Skip to main content
DataValue that stores a color value encoded as a number, with red, green, blue, and alpha components.
local dv: DataValueColor = DataValue.color()
dv.value = Color.rgba(255, 0, 0, 155)

Fields

value

DataValue that stores a color value encoded as a number, with red, green, blue, and alpha components.
local dv: DataValueColor = DataValue.color()
dv.value = Color.rgba(255, 0, 0, 155)
The full color value encoded as a number.

red

Color components in the range [0, 255].

green

Color components in the range [0, 255].

blue

Color components in the range [0, 255].

alpha

Alpha component in the range [0, 255].