| Package | com.yworks.util |
| Class | public class ColorStruct |
| 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.
argb:uint — ARGB value
|
ColorStruct —
An instance of ColorStruct created from the given ARGB value.
|