Lua
C++
Edit

Alpha

Extracts the alpha component from a packed RGBA value.

Syntax

Returns

Returns the alpha 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.