Packagegraphics.colors
Classpublic class XYZ
InheritanceXYZ Inheritance Object
Implements ColorSpace

The XYZ color system, also called “norm color system”. It is superset of the RGB color system. It uses tristimulus values when encoding. X, Y and Z are all calculated through color-matching functions and are always positive. It was a system created by CIE.



Public Properties
 PropertyDefined By
  X : Number
The X component.
XYZ
  Y : Number
The Y component.
XYZ
  Z : Number
The Z component.
XYZ
Public Methods
 MethodDefined By
  
XYZ(x:Number = 0, y:Number = 0, z:Number = 0)
Creates a new XYZ instance.
XYZ
  
clone():*
Creates and returns a shallow copy of the object.
XYZ
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
XYZ
  
interpolate(color:XYZ, level:Number = 1):XYZ
Interpolate the color and returns a new XYZ object.
XYZ
  
set(... args):void
Sets all tree components of a color.
XYZ
  
toObject():Object
Converts an object to an equivalent Object value.
XYZ
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
XYZ
  
toString():String
Returns a String representation of the object.
XYZ
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
Zproperty 
Z:Number

The Z component.


Implementation
    public function get Z():Number
    public function set Z(value:Number):void
Constructor Detail
XYZ()Constructor
public function XYZ(x:Number = 0, y:Number = 0, z:Number = 0)

Creates a new XYZ instance.

Parameters
x:Number (default = 0) — The x component.
 
y:Number (default = 0) — The y component.
 
z:Number (default = 0) — The z 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:XYZ, level:Number = 1):XYZ

Interpolate the color and returns a new XYZ object.

Parameters

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

Returns
XYZ — The interpolate XYZ 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.