Interface HSVAColor

All Superinterfaces:
Color
All Known Implementing Classes:
HSVAColorImpl

public interface HSVAColor extends Color
Represents a Color as HSVA.
H = hue, S = saturation, V = value, A = alpha/transparency
  • Method Details

    • hue

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

      double saturation()
      Returns:
      saturation in percent (from 0 to 100)
    • value

      double value()
      Returns:
      value in percent (from 0 to 100)
    • alpha

      double alpha()
      Alpha value of this color as double. Always between 0.0 (fully transparent) and 1.0 (opaque).
      Returns:
      alpha value of this color
    • toRGBAColor

      @NotNull default @NotNull RGBAColor toRGBAColor()
      Description copied from interface: Color
      This Color converted to RGBAColor. If this is already a RGBAColor, this object itself may be returned.
      Specified by:
      toRGBAColor in interface Color
      Returns:
      RGBAColor
    • toHSVAColor

      @NotNull default @NotNull HSVAColor toHSVAColor()
      Description copied from interface: Color
      This Color converted to HSVAColor. If this is already a HSVAColor, this object itself may be returned.
      Specified by:
      toHSVAColor in interface Color
      Returns:
      HSVAColor