Class PolyColor.Static

    • 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