Class 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 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
    • Constructor Detail

      • ColorHsv

        public ColorHsv​(double H,
                        double S,
                        double V)