Represents a color in RGBA8888 format with underlying type Int. @author Sam Twidale (http://samcodes.co.uk/)

Constructor

@:impl@:noCompletioninlinenew (rgba:UInt)

Creates a new color.

Parameters:

rgba

The color value. It will be interpreted in RGBA8888 format.

Variables

@:impla:UInt

Alpha color component.

@:implb:UInt

Blue color component.

@:implg:UInt

Green color component.

@:implr:UInt

Red color component.

Methods

@:impltoString ():String

Static methods

staticinlinecreate (red:UInt, green:UInt, blue:UInt, alpha:UInt):Color

Creates a new color.

Parameters:

red

The red component (0-255).

green

The green component (0-255).

blue

The blue component (0-255).

alpha

The alpha component (0-255).

Returns:

The new color value in RGBA8888 format.

@:fromstaticinlinefromInt (rgba:UInt):Color

Converts an integer to a RGBA8888 color.

Parameters:

rgba

The integer to convert to the color.

Returns:

The RGBA color.

@:fromstaticfromString (s:String):Color