Packagegraphics.colors
Classpublic class Yxy
InheritanceYxy Inheritance Object
Implements ColorSpace

The Trichromatic coordinates. Y represents the brightness and (x,y) hue and saturation.



Public Properties
 PropertyDefined By
  x : Number
The x component.
Yxy
  y : Number
The y component.
Yxy
  Y : Number
The Y brightness component.
Yxy
Public Methods
 MethodDefined By
  
Yxy(Y:Number = 0, x:Number = 0, y:Number = 0)
Creates a new Yxy instance.
Yxy
  
clone():*
Creates and returns a shallow copy of the object.
Yxy
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
Yxy
  
interpolate(color:Yxy, level:Number = 1):Yxy
Interpolate the color and returns a new Yxy object.
Yxy
  
set(... args):void
Sets all tree components of a color.
Yxy
  
toObject():Object
Converts an object to an equivalent Object value.
Yxy
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
Yxy
  
toString():String
Returns a String representation of the object.
Yxy
Property Detail
xproperty
x:Number

The x component.


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

The y component.


Implementation
    public function get y():Number
    public function set y(value:Number):void
Yproperty 
Y:Number

The Y brightness component.


Implementation
    public function get Y():Number
    public function set Y(value:Number):void
Constructor Detail
Yxy()Constructor
public function Yxy(Y:Number = 0, x:Number = 0, y:Number = 0)

Creates a new Yxy instance.

Parameters
Y:Number (default = 0) — The Y component.
 
x:Number (default = 0) — The x component.
 
y:Number (default = 0) — The y component.
Method Detail
clone()method
public function clone():*

Creates and returns a shallow copy of the object.

Returns
* — A new object that is a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
interpolate()method 
public function interpolate(color:Yxy, level:Number = 1):Yxy

Interpolate the color and returns a new Yxy object.

Parameters

color:Yxy — The Yxy reference used to interpolate the current Yxy object.
 
level:Number (default = 1) — The level of the interpolation as a decimal, where 0 is the start and 1 is the end.

Returns
Yxy — The interpolate Yxy result of the specified color.
set()method 
public function set(... args):void

Sets all tree components of a color.

Parameters

... args

toObject()method 
public function toObject():Object

Converts an object to an equivalent Object value.

Returns
Object — the Object representation of the instance.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns a String representation of the object.

Returns
String — a String representation of the object.