Skip to content

Function: GetARGB() ​

ts
function GetARGB(
   this: void, 
   a: number, 
   r: number, 
   g: number, 
   b: number): number;

Pack alpha, red, green, and blue channels into an engine color value.

Parameters ​

ParameterTypeDescription
thisvoid-
anumberAlpha channel.
rnumberRed channel.
gnumberGreen channel.
bnumberBlue channel.

Returns ​

number

Packed ARGB color.

Remarks ​

Channels are packed as 8-bit ARGB. Values outside 0..255 keep only their low 8 bits.