public class HSV extends Hue
Constructor and Description |
---|
HSV()
Creates an instance of HSV with default values.
|
HSV(double hue,
double saturation,
double value)
Creates an instance of HSV with the given hue, saturation and value
|
HSV(RGB rgb)
Creates an instance of HSV with the given RGB color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getColor()
Returns the literal string of the color.
|
double |
getValue()
Returns the value.
|
void |
setValue(double value)
Sets the value, a double value between 0.0 and 1.0.
|
String |
toString()
Return the color in String format.
|
getHue, getSaturation, setHue, setSaturation
public HSV()
public HSV(double hue, double saturation, double value)
hue
- the hue valuesaturation
- the saturation valuevalue
- the value valuepublic HSV(RGB rgb)
rgb
- the RGB colorpublic String getColor()
Color
public double getValue()
public void setValue(double value)
value
- the valueCopyright © 2018. All rights reserved.