| Constructor and Description |
|---|
HSLColor()
|
| Modifier and Type | Method and Description |
|---|---|
static float[] |
fromRGB(Color
Convert a RGB Color to it corresponding HSL values.
|
static int |
toRGB(float[] hsl)
Convert HSL values to a RGB Color with a default alpha value of 1.
|
static int |
toRGB(float[] hsl, float alpha)
Convert HSL values to a RGB Color.
|
static int |
toRGB(float h, float s, float l)
Convert HSL values to a ARGB Color with a default alpha value of 1.
|
static int |
toRGB(float h, float s, float l, float alpha)
Convert HSL values to an ARGB Color.
|
public static float[] fromRGB(Colorcolor, float[] dest)
color - the color to convert.
dest - the optional array to store the result in.
public static int toRGB(float[] hsl)
hsl - an array containing the 3 HSL values
public static int toRGB(float[] hsl,
float alpha)
hsl - an array containing the 3 HSL values
alpha - the alpha value between 0 - 1
public static int toRGB(float h,
float s,
float l)
h - Hue is specified as degrees in the range 0 - 1.
s - Saturation is specified as a percentage in the range 0 - 1.
l - Luminance is specified as a percentage in the range 0 - 1.
public static int toRGB(float h,
float s,
float l,
float alpha)
h - Hue is specified as degrees in the range 0 - 1.
s - Saturation is specified as a percentage in the range 0 - 1.
l - Luminance is specified as a percentage in the range 0 - 1.
alpha - the alpha value between 0 - 1