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