Package org.apache.commons.imaging.color
Class ColorHsl
- java.lang.Object
-
- org.apache.commons.imaging.color.ColorHsl
-
public final class ColorHsl extends java.lang.Object
Represents a color in the HSL color space.Contains the constant values for black, white, red, green, blue, cyan, magenta, and yellow.
- Since:
- 1.0-alpha1
- See Also:
- https://en.wikipedia.org/wiki/HSL_and_HSV
-
-
Field Summary
Fields Modifier and Type Field Description static ColorHsl
BLACK
A constant for color black.static ColorHsl
BLUE
A constant for color blue.static ColorHsl
GREEN
A constant for color green.double
H
double
L
static ColorHsl
RED
A constant for color red.double
S
static ColorHsl
WHITE
A constant for color white.
-
Constructor Summary
Constructors Constructor Description ColorHsl(double H, double S, double L)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
BLACK
public static final ColorHsl BLACK
A constant for color black. Color components are:Hue: 0 Saturation: 0 Lightness: 0
-
WHITE
public static final ColorHsl WHITE
A constant for color white. Color components are:Hue: 0 Saturation: 0 Lightness: 100
-
RED
public static final ColorHsl RED
A constant for color red. Color components are:Hue: 0 Saturation: 100 Lightness: 100
-
GREEN
public static final ColorHsl GREEN
A constant for color green. Color components are:Hue: 120 Saturation: 100 Lightness: 100
-
BLUE
public static final ColorHsl BLUE
A constant for color blue. Color components are:Hue: 240 Saturation: 100 Lightness: 100
-
H
public final double H
-
S
public final double S
-
L
public final double L
-
-