Lua
C++
Edit

Red

Extracts the red component from a packed RGBA value.

Syntax

Returns

Returns the red component of the color.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    int color = Rgba(220,64,128,255);

    Print(Red(color));
    Print(Green(color));
    Print(Blue(color));
    Print(Alpha(color));

    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.