Packagecom.yahoo.astra.utils
Classpublic class CMYKColor
InheritanceCMYKColor Inheritance CMYColor

Represents a value in the CMYK color space.



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

Represents the key component of a value in the CMYK color space.

Implementation
    public function get key():Number
    public function set key(value:Number):void
Constructor detail
CMYKColor()constructor
public function CMYKColor(cyan:Number = 0, magenta:Number = 0, yellow:Number = 0, key: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
 
key:Number (default = 0) — the initial key value
Method detail
clone()method
public override function clone():IColor

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

Returns
IColor
touint()method 
public override 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 CMYK colorspace.

KEYconstant 
public static const KEY:String = "key"

A constant representing the key component of the CMYK colorspace.

MAGENTAconstant 
public static const MAGENTA:String = "magenta"

A constant representing the magenta component of the CMYK colorspace.

YELLOWconstant 
public static const YELLOW:String = "yellow"

A constant representing the yellow component of the CMYK colorspace.