Packagecom.yahoo.astra.utils
Classpublic class CMYColor
ImplementsIColor
SubclassesCMYKColor

Represents a value in the CMY color space.



Public Properties
 PropertyDefined by
  cyan : Number
Represents the cyan component of a value in the CMY color space.
CMYColor
  magenta : Number
Represents the magenta component of a value in the CMY color space.
CMYColor
  yellow : Number
Represents the yellow component of a value in the CMY color space.
CMYColor
Public Methods
 MethodDefined by
  
CMYColor(cyan:Number = 0, magenta:Number = 0, yellow:Number = 0)
Constructor.
CMYColor
  
Copies the values of the IColor object into a new instance.
CMYColor
  
touint():uint
Converts the IColor object to a standard RGB uint color value.
CMYColor
Public Constants
 ConstantDefined by
  CYAN : String = "cyan"
[static] A constant representing the cyan component of the CMY colorspace.
CMYColor
  MAGENTA : String = "magenta"
[static] A constant representing the magenta component of the CMY colorspace.
CMYColor
  YELLOW : String = "yellow"
[static] A constant representing the yellow component of the CMY colorspace.
CMYColor
Property detail
cyanproperty
cyan:Number  [read-write]

Represents the cyan component of a value in the CMY color space.

Implementation
    public function get cyan():Number
    public function set cyan(value:Number):void
magentaproperty 
magenta:Number  [read-write]

Represents the magenta component of a value in the CMY color space.

Implementation
    public function get magenta():Number
    public function set magenta(value:Number):void
yellowproperty 
yellow:Number  [read-write]

Represents the yellow component of a value in the CMY color space.

Implementation
    public function get yellow():Number
    public function set yellow(value:Number):void
Constructor detail
CMYColor()constructor
public function CMYColor(cyan:Number = 0, magenta:Number = 0, yellow:Number = 0)

Constructor.

Parameters
cyan:Number (default = 0) — the initial cyan value
 
magenta:Number (default = 0) — the initial magenta value
 
yellow:Number (default = 0) — the initial yellow value
Method detail
clone()method
public function clone():IColor

Copies the values of the IColor object into a new instance.

Returns
IColor
touint()method 
public function touint():uint

Converts the IColor object to a standard RGB uint color value.

Returns
uint
Constant detail
CYANconstant
public static const CYAN:String = "cyan"

A constant representing the cyan component of the CMY colorspace.

MAGENTAconstant 
public static const MAGENTA:String = "magenta"

A constant representing the magenta component of the CMY colorspace.

YELLOWconstant 
public static const YELLOW:String = "yellow"

A constant representing the yellow component of the CMY colorspace.