GODPAPER | All Packages | All Classes | Index | Frames No Frames |
ColorArgb

Package | starling.extensions
Class | public class ColorArgb
Inheritance | ColorArgb Object

Public Properties

| Property | Defined By
--- | --- | ---
|  | alpha : Number | ColorArgb
|  | blue : Number | ColorArgb
|  | green : Number | ColorArgb
|  | red : Number | ColorArgb

Public Methods

| Method | Defined By
--- | --- | ---
|  | ColorArgb(red:Number = 0, green:Number = 0, blue:Number = 0, alpha:Number = 0) | ColorArgb
|  | copyFrom(argb:ColorArgb):void | ColorArgb
|  | fromArgb(color:uint):void | ColorArgb
|  | fromArgb(color:uint):ColorArgb [static] | ColorArgb
|  | fromRgb(color:uint):void | ColorArgb
|  | fromRgb(color:uint):ColorArgb [static] | ColorArgb
|  | toArgb():uint | ColorArgb
|  | toRgb():uint | ColorArgb

Property Detail

alpha | property

`public var alpha:Number`

blue | property |

`public var blue:Number`

green | property |

`public var green:Number`

red | property |

`public var red:Number`

Constructor Detail

ColorArgb | () | Constructor

`public function ColorArgb(red:Number = 0, green:Number = 0, blue:Number = 0, alpha:Number = 0)`

Parameters

| `red:Number` (default = `0`)``
| `green:Number` (default = `0`)``
| `blue:Number` (default = `0`)``
| `alpha:Number` (default = `0`)``

Method Detail

copyFrom | () | method

`public function copyFrom(argb:ColorArgb):void`

Parameters

| `argb:ColorArgb`

fromArgb | () | method |

`public function fromArgb(color:uint):void`

Parameters

| `color:uint`

fromArgb | () | method |

`public static function fromArgb(color:uint):ColorArgb`

Parameters

| `color:uint`

Returns

| `ColorArgb`

fromRgb | () | method |

`public function fromRgb(color:uint):void`

Parameters

| `color:uint`

fromRgb | () | method |

`public static function fromRgb(color:uint):ColorArgb`

Parameters

| `color:uint`

Returns

| `ColorArgb`

toArgb | () | method |

`public function toArgb():uint`

Returns

| `uint`

toRgb | () | method |

`public function toRgb():uint`

Returns

| `uint`

Thu Jan 16 2014, 01:11 PM +08:00