public class HSLColor extends java.lang.Object implements Color
The hue component should be between0.0and360.0 The saturation component should be between0.0and1.0 The lightness component should be between0.0and1.0 The alpha component should be between0.0and1.0
Modifier and Type | Field and Description |
---|---|
float |
alpha |
float |
hue |
float |
lightness |
float |
saturation |
Constructor and Description |
---|
HSLColor(float hue,
float saturation,
float lightness,
float alpha) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
HSLColor |
toHSL() |
RGBColor |
toRGB()
Returns a conversion of this Color into an RGBColor.
|
public final float hue
public final float saturation
public final float lightness
public final float alpha
public HSLColor(float hue, float saturation, float lightness, float alpha)
public RGBColor toRGB()
Color
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object