Class HSVAColorImpl

java.lang.Object
de.linusdev.lutils.color.impl.HSVAColorImpl
All Implemented Interfaces:
Color, HSVAColor

public class HSVAColorImpl extends Object implements HSVAColor
  • Constructor Details

    • HSVAColorImpl

      public HSVAColorImpl(double hue, double saturation, double value, double alpha)
  • Method Details

    • hue

      public double hue()
      Specified by:
      hue in interface HSVAColor
      Returns:
      hue of this color in degree (from 0°, inclusive, to 360°, exclusive)
    • saturation

      public double saturation()
      Specified by:
      saturation in interface HSVAColor
      Returns:
      saturation in percent (from 0 to 100)
    • value

      public double value()
      Specified by:
      value in interface HSVAColor
      Returns:
      value in percent (from 0 to 100)
    • alpha

      public double alpha()
      Description copied from interface: HSVAColor
      Alpha value of this color as double. Always between 0.0 (fully transparent) and 1.0 (opaque).
      Specified by:
      alpha in interface HSVAColor
      Returns:
      alpha value of this color
    • toString

      public String toString()
      Overrides:
      toString in class Object