Difference between revisions of "SHIP:Sail:argb"

From Serious Documentation
Jump to: navigation, search
(Created page with "__NOTOC__ {{SailFuncTableStart|}}<onlyinclude> |{{SailFunc|argb}}||{{DataType|Integer}} color ||style="text-align:center;"|v5.1.0||Creates a combined color integer from separa...")
 
Line 45: Line 45:
 
|}
 
|}
  
[[Categories:Numeric Functions]]
+
[[Category:Numeric Functions]]
 +
[[Category:Canvas Functions]]

Revision as of 14:34, 10 October 2016

Function Returns Introduced Description
argb Integer color v5.1.0 Creates a combined color integer from separate color channels.

See Also:

Prototype

Integer 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 Integer an integer 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
argb(255, 255, 255, 0); -256
argb(0, 255, 255, 255); 16776960