| Package | com.yahoo.astra.utils |
| Class | public class CMYKColor |
| Inheritance | CMYKColor CMYColor |
| Property | Defined by | ||
|---|---|---|---|
![]() | cyan : 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 | ||
![]() | 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 | |
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| key | property |
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
| CMYKColor | () | constructor |
public function CMYKColor(cyan:Number = 0, magenta:Number = 0, yellow:Number = 0, key:Number = 0)Constructor
Parameterscyan: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
|
| clone | () | method |
public override function clone():IColorCopies the values of the IColor object into a new instance.
ReturnsIColor |
| touint | () | method |
public override function touint():uintConverts the IColor object to a standard RGB uint color value.
Returnsuint |
| CYAN | constant |
public static const CYAN:String = "cyan"A constant representing the cyan component of the CMYK colorspace.
| KEY | constant |
public static const KEY:String = "key"A constant representing the key component of the CMYK colorspace.
| MAGENTA | constant |
public static const MAGENTA:String = "magenta"A constant representing the magenta component of the CMYK colorspace.
| YELLOW | constant |
public static const YELLOW:String = "yellow"A constant representing the yellow component of the CMYK colorspace.