Packagegraphics.colors
Classpublic class HSV
InheritanceHSV Inheritance Object
Implements ColorSpace

A system which represents color as Hue, Saturation and Value.

Hue is what is seen as the color.

Saturation is how “pure” the color is. 0% is grey and 100% is a pure color.

Value represents the brightness.



Public Properties
 PropertyDefined By
  h : Number
The hue component (between 0 and 360).
HSV
  s : Number
The saturation component (between 0 and 1).
HSV
  v : Number
The brightness value component of the hsv color (between 0 and 1).
HSV
Public Methods
 MethodDefined By
  
HSV(h:Number = 0, s:Number = 0, v:Number = 0)
Creates a new HSV instance.
HSV
  
clone():*
Creates and returns a shallow copy of the object.
HSV
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
HSV
  
set(... args):void
Sets the hsv components (h,s,v)
HSV
  
toObject():Object
Converts an object to an equivalent Object value.
HSV
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
HSV
  
toString():String
Returns a String representation of the object.
HSV
Property Detail
hproperty
h:Number

The hue component (between 0 and 360).


Implementation
    public function get h():Number
    public function set h(value:Number):void
sproperty 
s:Number

The saturation component (between 0 and 1).


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

The brightness value component of the hsv color (between 0 and 1).


Implementation
    public function get v():Number
    public function set v(value:Number):void
Constructor Detail
HSV()Constructor
public function HSV(h:Number = 0, s:Number = 0, v:Number = 0)

Creates a new HSV instance.

Parameters
h:Number (default = 0) — The hue component (between 0 and 360).
 
s:Number (default = 0) — The saturation component (between 0 and 1).
 
v:Number (default = 0) — The brightness value component of the hsv color (between 0 and 1).
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.
set()method 
public function set(... args):void

Sets the hsv components (h,s,v)

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.