| Package | com.yahoo.astra.utils |
| Class | public class CMYColor |
| Implements | IColor |
| Subclasses | CMYKColor |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| cyan | property |
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
| magenta | property |
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
| yellow | property |
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
| CMYColor | () | constructor |
public function CMYColor(cyan:Number = 0, magenta:Number = 0, yellow: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
|
| clone | () | method |
public function clone():IColorCopies the values of the IColor object into a new instance.
ReturnsIColor |
| touint | () | method |
public 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 CMY colorspace.
| MAGENTA | constant |
public static const MAGENTA:String = "magenta"A constant representing the magenta component of the CMY colorspace.
| YELLOW | constant |
public static const YELLOW:String = "yellow"A constant representing the yellow component of the CMY colorspace.