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
-
hue
- hue value, 0 to 1.
-
saturation
- saturation value, 0 to 1.
-
value
- brightness value, 0 to 1.
-
HSVCoord(RGBCoord)
- Constructor from RGB space
-
convertFromRGB(RGBCoord)
- Converts RGB -> HSV.
-
convertToRGB(RGBCoord)
- Convert HSV -> RGB.
-
toString()
- Converts HSV coordinates to string.
hue
public float hue
- hue value, 0 to 1.
saturation
public float saturation
- saturation value, 0 to 1.
value
public float value
- brightness value, 0 to 1.
HSVCoord
public HSVCoord(RGBCoord rgb)
- Constructor from RGB space
convertFromRGB
public final void convertFromRGB(RGBCoord rgb)
- Converts RGB -> HSV.
- Parameters:
- rgb - RGB space coordinates.
convertToRGB
public final void convertToRGB(RGBCoord rgb)
- Convert HSV -> RGB.
- Parameters:
- rgb - RGB space coordinates.
toString
public String toString()
- Converts HSV coordinates to string.
- Overrides:
- toString in class Object