Lua
C++
Edit

Red

Extracts the red component from a packed RGBA value.

Syntax

unsigned char Red(unsigned int rgba)

Returns

Returns the red component of the color.

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.