Public Constants
 ConstantDefined By
  CMY2CMYK : Function
Converts the specified CMY object in this CMYK representation.
graphics.colors
  CMY2RGB : Function
Returns the RGB representation of the specified CMY object.
graphics.colors
  CMYK2CMY : Function
Converts the specified CMYK object in this CMY representation.
graphics.colors
  HSL2RGB : Function
Returns the RGB representation of the passed-in HSL color.
graphics.colors
  HSL2RGBNumber : Function
Returns the rgb number representation of the passed-in HSL color.
graphics.colors
  HSV2RGB : Function
Returns the RGB representation of the passed-in HSV color.
graphics.colors
  HSV2RGBNumber : Function
Returns the rgb number representation of the passed-in HSV color.
graphics.colors
  HUE2RGB : Function
Converts the hue values in rgb values.
graphics.colors
  RGB2CMY : Function
Returns the CMY representation of the specified RGB object.
graphics.colors
  RGB2HSL : Function
Returns the HSL representation of the passed-in RGB parameter.
graphics.colors
  RGB2HSV : Function
Returns the HSV representation of the passed-in RGB parameter.
graphics.colors
  RGB2XYZ : Function
Transform the specified RGB in this XYZ representation.
graphics.colors
  RGB2YUV : Function
Returns the YUV representation of the passed-in RGB parameter.
graphics.colors
  XYZ2RGB : Function
Transform the specified XYZ in this RGB representation (use Observer = 2°, Illuminant = D65).
graphics.colors
  XYZ2Yxy : Function
Transform the specified XYZ in this Yxy representation (use Observer = 2°, Illuminant = D65).
graphics.colors
  YUV2RGB : Function
Returns the RGB representation of the passed-in YUV parameter.
graphics.colors
  Yxy2XYZ : Function
Transform the specified Yxy in this XYZ representation (use Observer = 2°, Illuminant = D65).
graphics.colors
Constant Detail
CMY2CMYKConstant
public const CMY2CMYK:Function

Converts the specified CMY object in this CMYK representation.

CMY2RGBConstant 
public const CMY2RGB:Function

Returns the RGB representation of the specified CMY object.

Example :

     import graphics.colors.CMY ;
     import graphics.colors.CMY2RGB ;
     import graphics.colors.RGB ;
     
     var cmy:CMY = new CMY( 0 , 1 , 1 ) ;
     var rgb:RGB = CMY2RGB( cmy ) ;
     
     trace( rgb ) ; // [RGB r:255 g:0 b:0 hex:0xFF0000]
     

CMYK2CMYConstant 
public const CMYK2CMY:Function

Converts the specified CMYK object in this CMY representation.

HSL2RGBNumberConstant 
public const HSL2RGBNumber:Function

Returns the rgb number representation of the passed-in HSL color.

Example :

     import graphics.colors.HSL ;
     import graphics.colors.HSL2RGBNumber ;
     
     var hsl:HSL    = new HSL( 0 , 1 , 0.5 ) ;
     var rgb:Number = HSL2RGBNumber( hsl ) ; 
     
     trace( rgb ) ; // 0xFF0000
     

HSL2RGBConstant 
public const HSL2RGB:Function

Returns the RGB representation of the passed-in HSL color.

Example :

     import graphics.colors.HSL ;
     import graphics.colors.RGB ;
     
     import graphics.colors.HSL2RGB ;
     
     var hsl:HSL = new HSL( 0 , 1 , 0.5 ) ;
     var rgb:RGB = HSL2RGB( hsl ) ; 
     
     trace( rgb ) ; // [RGB r:255 g:0 b:0 hex:0xFF0000]
     

HSV2RGBNumberConstant 
public const HSV2RGBNumber:Function

Returns the rgb number representation of the passed-in HSV color.

Example :

     import graphics.colors.HSV ;
     import graphics.colors.HSV2RGBNumber ;
     
     var hsv:HSV    = new HSV( 0 , 1 , 1 ) ;
     var rgb:Number = HSV2RGBNumber( hsl ) ; 
     
     trace( rgb ) ; // 0xFF0000
     

HSV2RGBConstant 
public const HSV2RGB:Function

Returns the RGB representation of the passed-in HSV color.

Example :

     import graphics.colors.HSV ;
     import graphics.colors.RGB ;
     
     import graphics.colors.HSV2RGB ;
     
     var hsv:HSV = new HSL( 0 , 1 , 1 ) ;
     var rgb:RGB = HSV2RGB( hsv ) ; 
     
     trace( rgb ) ; // [RGB r:255 g:0 b:0 hex:0xFF0000]
     

HUE2RGBConstant 
public const HUE2RGB:Function

Converts the hue values in rgb values.

RGB2CMYConstant 
public const RGB2CMY:Function

Returns the CMY representation of the specified RGB object.

Example :

     import graphics.colors.CMY ;
     import graphics.colors.RGB ;
     import graphics.colors.RGB2CMY ;
     
     var rgb:RGB = new RGB( 255 , 0 , 0 ) ;
     
     var cmy:CMY = RGB2CMY( rgb ) ;
     
     trace( cmy ) ; // [CMY c:0 m:1 y:1]
     

RGB2HSLConstant 
public const RGB2HSL:Function

Returns the HSL representation of the passed-in RGB parameter.

Example :

     import graphics.colors.HSL ;
     import graphics.colors.RGB ;
     import graphics.colors.RBG2HSL ;
     
     var rgb:RGB = new RGB(255,0,0)  ;
     var hsl:HSL = RGB2HSL( rgb ) ; 
     
     trace( hsl ) ; // [HSL h:0 s:1 l:0.5]
     

RGB2HSVConstant 
public const RGB2HSV:Function

Returns the HSV representation of the passed-in RGB parameter.

Example :

     import graphics.colors.HSV ;
     import graphics.colors.RGB ;
     import graphics.colors.RGB2HSV ;
     
     var rgb:RGB = new RGB(255,0,0)  ;
     var hsv:HSV = RGB2HSV( rgb ) ; 
     
     trace( hsv ) ; // [HSV h:0 s:1 v:1]
     

RGB2XYZConstant 
public const RGB2XYZ:Function

Transform the specified RGB in this XYZ representation.

RGB2YUVConstant 
public const RGB2YUV:Function

Returns the YUV representation of the passed-in RGB parameter.

Example :

     import graphics.colors.RGB ;
     import graphics.colors.RGB2YUV ;
     import graphics.colors.YUV ;
     
     var rgb:RGB = new RGB(255,0,0)  ;
     var yuv:YUV = RGB2YUV( rgb ) ; 
     
     trace( rgb ) ; // [RGB r:255 g:0 b:0 hex:0xFF0000]
     trace( yuv ) ; // [YUV y:76.24499999999999 u:84.97232 v:255.5]
     

XYZ2RGBConstant 
public const XYZ2RGB:Function

Transform the specified XYZ in this RGB representation (use Observer = 2°, Illuminant = D65).

XYZ2YxyConstant 
public const XYZ2Yxy:Function

Transform the specified XYZ in this Yxy representation (use Observer = 2°, Illuminant = D65).

YUV2RGBConstant 
public const YUV2RGB:Function

Returns the RGB representation of the passed-in YUV parameter.

Example :

     import graphics.colors.RGB ;
     import graphics.colors.YUV ;
     import graphics.colors.YUV2RGB ;
     
     var yuv:YUV = new YUV(76.24499999999999,84.97232,255.5)  ;
     var rgb:RGB = YUV2RGB( yuv ) ;
     
     trace( yuv ) ; // [YUV y:76.24499999999999 u:84.97232 v:255.5]
     trace( rgb ) ; // [RGB r:255 g:0 b:0 hex:0xFF0000]
     

Yxy2XYZConstant 
public const Yxy2XYZ:Function

Transform the specified Yxy in this XYZ representation (use Observer = 2°, Illuminant = D65).

Function detail