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 | ||
blue : uint [read-only]
The blue part of the color. | ColorStruct | ||
color : uint [read-only]
The RGB value of this ColorStruct
| ColorStruct | ||
green : uint [read-only]
The green part of the color. | ColorStruct | ||
red : uint [read-only]
The red part of the color. | 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
blue | property |
blue:uint
[read-only] The blue part of the color.
public function get blue():uint
color | property |
color:uint
[read-only]
The RGB value of this ColorStruct
public function get color():uint
green | property |
green:uint
[read-only] The green part of the color.
public function get green():uint
red | property |
red:uint
[read-only] The red part of the color.
public function get red():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.
|