SHIP:Sail:argb

From Serious Documentation
Jump to: navigation, search
Function Returns Introduced Description
argb Color v5.1.0 Creates a combined color from separate color channels.

See Also:

Prototype

Color color = argb(Integer alpha, Integer red, Integer green, Integer blue;

Parameters/Return Value

Parameter Data Type Description
alpha Integer Alpha channel
red Integer Red channel
blue Integer Green channel
green Integer Blue channel
Return Color color representation of the mixed color;

Detailed Description

The argb function combines each alpha, red, green, and blue channel into a single blended color.


Examples

Example Result Notes
myColor = argb(255, 0, 0, 0); 0xff000000 opaque black
myColor = argb(0, 255, 255, 255); 0x00ffffff transparent white