Interface IGeckoColor

    • Method Detail

      • getColor

        int getColor()
        Get the packed ARGB color value as a single integer.
        Returns:
        the packed ARGB color integer
      • getRed

        int getRed()
        Get the red component.
        Returns:
        the red component (0-255)
      • getGreen

        int getGreen()
        Get the green component.
        Returns:
        the green component (0-255)
      • getBlue

        int getBlue()
        Get the blue component.
        Returns:
        the blue component (0-255)
      • getAlpha

        int getAlpha()
        Get the alpha (transparency) component.
        Returns:
        the alpha component (0-255, where 255 is fully opaque)
      • brighter

        IGeckoColor brighter​(double factor)
        Create a brighter version of this color.
        Parameters:
        factor - brightness factor (0.0 = no change, 1.0 = white)
        Returns:
        a new brighter color
      • darker

        IGeckoColor darker​(double factor)
        Create a darker version of this color.
        Parameters:
        factor - darkness factor (0.0 = no change, 1.0 = black)
        Returns:
        a new darker color