Class HSVCoord

java.lang.Object
   |
   +----HSVCoord

public class HSVCoord
extends Object
This class produces the HSV coordinates container and implements RGB-HSV converter.

See Also:
RGBCoord

Variable Index

 o hue
hue value, 0 to 1.
 o saturation
saturation value, 0 to 1.
 o value
brightness value, 0 to 1.

Constructor Index

 o HSVCoord(RGBCoord)
Constructor from RGB space

Method Index

 o convertFromRGB(RGBCoord)
Converts RGB -> HSV.
 o convertToRGB(RGBCoord)
Convert HSV -> RGB.
 o toString()
Converts HSV coordinates to string.

Variables

 o hue
 public float hue
hue value, 0 to 1.

 o saturation
 public float saturation
saturation value, 0 to 1.

 o value
 public float value
brightness value, 0 to 1.

Constructors

 o HSVCoord
 public HSVCoord(RGBCoord rgb)
Constructor from RGB space

Methods

 o convertFromRGB
 public final void convertFromRGB(RGBCoord rgb)
Converts RGB -> HSV.

Parameters:
rgb - RGB space coordinates.
 o convertToRGB
 public final void convertToRGB(RGBCoord rgb)
Convert HSV -> RGB.

Parameters:
rgb - RGB space coordinates.
 o toString
 public String toString()
Converts HSV coordinates to string.

Overrides:
toString in class Object