| Package | graphics.colors |
| Class | public class HSV |
| Inheritance | HSV Object |
| Implements | ColorSpace |
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.
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| h | property |
h:NumberThe hue component (between 0 and 360).
public function get h():Number public function set h(value:Number):void| s | property |
s:NumberThe saturation component (between 0 and 1).
public function get s():Number public function set s(value:Number):void| v | property |
v:NumberThe brightness value component of the hsv color (between 0 and 1).
public function get v():Number public function set v(value:Number):void| HSV | () | Constructor |
public function HSV(h:Number = 0, s:Number = 0, v:Number = 0)Creates a new HSV instance.
Parametersh: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).
|
| 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.
|
| set | () | method |
public function set(... args):voidSets the hsv components (h,s,v)
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.
|