| Package | com.yahoo.astra.utils |
| Class | public class ColorSpace |
| Method | Defined by | ||
|---|---|---|---|
|
classToColorSpace(type:Class):String
[static]
Taking an IColor implementation as input, returns the string constant
that represents the colorspace for the class.
| ColorSpace | ||
|
colorSpaceToClass(colorSpace:String):Class
[static]
Taking a string constant for a colorspace, returns the IColor
implementation for that colorspace.
| ColorSpace | ||
| Constant | Defined by | ||
|---|---|---|---|
| CMY : String = "cmy" [static]
A constant representing the CMY colorspace.
| ColorSpace | ||
| CMYK : String = "cmyk" [static]
A constant representing the CMYK colorspace.
| ColorSpace | ||
| HSB : String = "hsb" [static]
A constant representing the HSB colorspace.
| ColorSpace | ||
| RGB : String = "rgb" [static]
A constant representing the RGB colorspace.
| ColorSpace | ||
| classToColorSpace | () | method |
public static function classToColorSpace(type:Class):StringTaking an IColor implementation as input, returns the string constant that represents the colorspace for the class.
Parameterstype:Class — the IColor implementation
|
String — the string constant representing the colorspace
|
| colorSpaceToClass | () | method |
public static function colorSpaceToClass(colorSpace:String):ClassTaking a string constant for a colorspace, returns the IColor implementation for that colorspace.
ParameterscolorSpace:String — the string constant
|
Class — the IColor implementation
|
| CMY | constant |
public static const CMY:String = "cmy"A constant representing the CMY colorspace.
See also
| CMYK | constant |
public static const CMYK:String = "cmyk"A constant representing the CMYK colorspace.
See also
| HSB | constant |
public static const HSB:String = "hsb"A constant representing the HSB colorspace.
See also
| RGB | constant |
public static const RGB:String = "rgb"A constant representing the RGB colorspace.
See also