Lua
C++
Edit

Alpha

Extracts the alpha component from a packed RGBA value.

Syntax

Parameter Description
rgba The packed RGBA value.

Returns

Returns the alpha component of the color.

Example

local color = Rgba(220, 64, 128, 255)

Print(Red(color))
Print(Green(color))
Print(Blue(color))
Print(Alpha(color))
Copyright © 2024 Ultra Software.
All rights reserved.