Package org.apache.commons.imaging.color
Class ColorHsv
- java.lang.Object
-
- org.apache.commons.imaging.color.ColorHsv
-
public final class ColorHsv extends Object
Represents a color in the HSV 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 ColorHsvBLACKA constant for color black.static ColorHsvBLUEA constant for color blue.static ColorHsvGREENA constant for color green.doubleHstatic ColorHsvREDA constant for color red.doubleSdoubleVstatic ColorHsvWHITEA constant for color white.
-
Constructor Summary
Constructors Constructor Description ColorHsv(double H, double S, double V)
-
-
-
Field Detail
-
BLACK
public static final ColorHsv BLACK
A constant for color black. Color components are:Hue: 0 Saturation: 0 Value: 0
-
WHITE
public static final ColorHsv WHITE
A constant for color white. Color components are:Hue: 0 Saturation: 0 Value: 100
-
RED
public static final ColorHsv RED
A constant for color red. Color components are:Hue: 0 Saturation: 100 Value: 100
-
GREEN
public static final ColorHsv GREEN
A constant for color green. Color components are:Hue: 120 Saturation: 100 Value: 100
-
BLUE
public static final ColorHsv BLUE
A constant for color blue. Color components are:Hue: 240 Saturation: 100 Value: 100
-
H
public final double H
-
S
public final double S
-
V
public final double V
-
-