| Package | graphics.colors |
| Class | public class Yxy |
| Inheritance | Yxy Object |
| Implements | ColorSpace |
| Property | Defined By | ||
|---|---|---|---|
| x : Number
The x component. | Yxy | ||
| y : Number
The y component. | Yxy | ||
| Y : Number
The Y brightness component. | Yxy | ||
| Method | Defined 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 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 | ||
| 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| Y | property |
Y:NumberThe Y brightness component.
public function get Y():Number public function set Y(value:Number):void| Yxy | () | Constructor |
public function Yxy(Y:Number = 0, x:Number = 0, y:Number = 0)Creates a new Yxy instance.
ParametersY:Number (default = 0) — The Y component.
| |
x:Number (default = 0) — The x component.
| |
y:Number (default = 0) — The y 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:Yxy, level:Number = 1):YxyInterpolate 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.
|
Yxy — The interpolate Yxy 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.
|