Lua
C++
Edit

Rgba

This function combines four 8-bit color channels into a single packed RGBA color.

Syntax

Parameter Description
r red component
g green component
b blue component
a alpha component (default = 255)

Returns

Returns an RGBA color packed into a single integer. The individual color channel values can be extracted with the Red_, Green, Blue, and Alpha functions.

Example

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.