| Package | graphics.colors |
| Class | public class YUV |
| Inheritance | YUV Object |
| Implements | ColorSpace |
| Property | Defined By | ||
|---|---|---|---|
| u : Number
The u component. | YUV | ||
| v : Number
The v component. | YUV | ||
| y : Number
The y component. | YUV | ||
| Method | Defined By | ||
|---|---|---|---|
YUV(y:Number = 0, u:Number = 0, v:Number = 0)
Creates a new YUV instance. | YUV | ||
clone():*
Creates and returns a shallow copy of the object. | YUV | ||
equals(o:*):Boolean
Compares the specified object with this object for equality. | YUV | ||
Interpolate the color and returns a new XYZ object. | YUV | ||
set(... args):void
Sets all tree components of a color. | YUV | ||
toObject():Object
Converts an object to an equivalent Object value. | YUV | ||
toSource(indent:int = 0):String
Returns the source code string representation of the object. | YUV | ||
toString():String
Returns a String representation of the object. | YUV | ||
| u | property |
u:NumberThe u component.
public function get u():Number public function set u(value:Number):void| v | property |
v:NumberThe v component.
public function get v():Number public function set v(value:Number):void| y | property |
y:NumberThe y component.
public function get y():Number public function set y(value:Number):void| YUV | () | Constructor |
public function YUV(y:Number = 0, u:Number = 0, v:Number = 0)Creates a new YUV instance.
Parametersy:Number (default = 0) — The y component.
| |
u:Number (default = 0) — The u component.
| |
v:Number (default = 0) — The v 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:YUV, level:Number = 1):YUVInterpolate the color and returns a new XYZ object.
Parameters
color:YUV — The YUV reference used to interpolate the current YUV object.
| |
level:Number (default = 1) — The level of the interpolation as a decimal, where 0 is the start and 1 is the end.
|
YUV — The interpolate YUV 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.
|