Class PolyColor.Static

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Float getHue() The hue of this color.
      final Float getSaturation() The saturation of this color.
      final Float getBrightness() The brightness of this color.
      final Float getAlpha() The alpha of this color.
      final Integer getArgb() return an integer representation of this color.
      • Methods inherited from class org.polyfrost.polyui.color.PolyColor

        alpha, blue, equals, getRgba, getTransparent, green, hashCode, red, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getHue

         final Float getHue()

        The hue of this color. Can be any value, but is mod 360, so values are always between 0 and 360.

      • getSaturation

         final Float getSaturation()

        The saturation of this color. Clamped between 0f..1f.

      • getBrightness

         final Float getBrightness()

        The brightness of this color. Clamped between 0f..1f.

      • getAlpha

         final Float getAlpha()

        The alpha of this color. Clamped between 0f..1f.

      • getArgb

         final Integer getArgb()

        return an integer representation of this color. Utilizes bit-shifts to store the color as one 32-bit integer, like so:

        0bAAAAAAAARRRRRRRRGGGGGGGGBBBBBBBB aka 0xAARRGGBB