public class HSLColor extends Object
Constructor and Description |
---|
HSLColor(Color color)
Builds the HSL representation of a color
|
HSLColor(double hue,
double saturation,
double lightness)
Builds a color based on HSLA components
|
HSLColor(double hue,
double saturation,
double lightness,
double alpha)
Builds a color based on HSLA components
|
Modifier and Type | Method and Description |
---|---|
double |
getAlpha() |
double |
getHue() |
double |
getLightness() |
double |
getSaturation() |
void |
setAlpha(double alpha) |
void |
setHue(double hue) |
void |
setLightness(double lightness) |
void |
setSaturation(double saturation) |
Color |
toRGB()
Turns the HSL representation into a RGB one
|
String |
toString() |
public HSLColor(double hue, double saturation, double lightness)
public HSLColor(double hue, double saturation, double lightness, double alpha)
public HSLColor(Color color)
public void setHue(double hue)
public void setSaturation(double saturation)
public void setLightness(double lightness)
public void setAlpha(double alpha)
public double getHue()
public double getSaturation()
public double getLightness()
public double getAlpha()
public Color toRGB()
Copyright © 1996–2023 Geotools. All rights reserved.