| Package | graphics.colors |
| Class | public class XYZ |
| Inheritance | XYZ Object |
| Implements | ColorSpace |
| Property | Defined By | ||
|---|---|---|---|
| X : Number
The X component. | XYZ | ||
| Y : Number
The Y component. | XYZ | ||
| Z : Number
The Z component. | XYZ | ||
| Method | Defined 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 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 | ||
| X | property |
X:NumberThe X component.
public function get X():Number public function set X(value:Number):void| Y | property |
Y:NumberThe Y component.
public function get Y():Number public function set Y(value:Number):void| Z | property |
Z:NumberThe Z component.
public function get Z():Number public function set Z(value:Number):void| XYZ | () | Constructor |
public function XYZ(x:Number = 0, y:Number = 0, z:Number = 0)Creates a new XYZ instance.
Parametersx:Number (default = 0) — The x component.
| |
y:Number (default = 0) — The y component.
| |
z:Number (default = 0) — The z component.
|
| 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:*):BooleanCompares the specified object with this object for equality.
Parameters
o:* |
Boolean — true if the the specified object is equal with this object.
|
| interpolate | () | method |
public function interpolate(color:XYZ, level:Number = 1):XYZInterpolate 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.
|
XYZ — The interpolate XYZ result of the specified color.
|
| set | () | method |
public function set(... args):voidSets all tree components of a color.
Parameters
... args |
| toObject | () | method |
public function toObject():ObjectConverts an object to an equivalent Object value.
ReturnsObject — the Object representation of the instance.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns a String representation of the object.
ReturnsString — a String representation of the object.
|