Package org.apache.commons.imaging.color
Class ColorHsl
- java.lang.Object
-
- org.apache.commons.imaging.color.ColorHsl
-
public final class ColorHsl extends 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 ColorHslBLACKA constant for color black.static ColorHslBLUEA constant for color blue.static ColorHslGREENA constant for color green.doubleHdoubleLstatic ColorHslREDA constant for color red.doubleSstatic ColorHslWHITEA constant for color white.
-
Constructor Summary
Constructors Constructor Description ColorHsl(double H, double S, double L)
-
-
-
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
-
-