Packagegraphics.colors
Classpublic class YUV
InheritanceYUV Inheritance Object
Implements ColorSpace

The YUV defines a color space in terms of one luma (Y') and two chrominance (UV) components. The YUV color model is used in the NTSC, PAL, and SECAM composite color video standards.



Public Properties
 PropertyDefined By
  u : Number
The u component.
YUV
  v : Number
The v component.
YUV
  y : Number
The y component.
YUV
Public Methods
 MethodDefined 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(color:YUV, level:Number = 1):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
Property Detail
uproperty
u:Number

The u component.


Implementation
    public function get u():Number
    public function set u(value:Number):void
vproperty 
v:Number

The v component.


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

The y component.


Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor Detail
YUV()Constructor
public function YUV(y:Number = 0, u:Number = 0, v:Number = 0)

Creates a new YUV instance.

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

Interpolate 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.

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