| Package | com.yworks.util |
| Class | public class ColorStruct |
| Inheritance | ColorStruct Object |
| Property | Defined By | ||
|---|---|---|---|
| alpha : Number [read-only]
The alpha value of this ColorStruct
| ColorStruct | ||
| color : uint [read-only]
The RGB value of this ColorStruct
| ColorStruct | ||
| Method | Defined By | ||
|---|---|---|---|
ColorStruct(color:uint, alpha:Number)
Constructs an instance with the given RGB color and the given alpha value. | ColorStruct | ||
fromARGB(argb:uint):ColorStruct [static]
Factory method which creates a ColorStruct from an ARGB value. | ColorStruct | ||
| alpha | property |
alpha:Number [read-only]
The alpha value of this ColorStruct
public function get alpha():Number| color | property |
color:uint [read-only]
The RGB value of this ColorStruct
public function get color():uint| ColorStruct | () | Constructor |
public function ColorStruct(color:uint, alpha:Number)Constructs an instance with the given RGB color and the given alpha value.
Parameterscolor:uint — Color as RGB value
| |
alpha:Number — Alpha value
|
| fromARGB | () | method |
public static function fromARGB(argb:uint):ColorStruct
Factory method which creates a ColorStruct from an ARGB value.
Parameters
argb:uint — ARGB value
|
ColorStruct — An instance of ColorStruct created from the given ARGB value.
|