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 and 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 and Description
    `ColorHsl(double H, double S, double L)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 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

  - ### Constructor Detail

    - #### ColorHsl

          public ColorHsl(double H,
                          double S,
                          double L)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.