Class ExtendedColor

    • Constructor Detail

      • ExtendedColor

        public ExtendedColor​(int type)
        Constructs an extended color of a certain type.
        Parameters:
        type -
      • ExtendedColor

        public ExtendedColor​(int type,
                             float red,
                             float green,
                             float blue)
        Constructs an extended color of a certain type and a certain color.
        Parameters:
        type -
        red -
        green -
        blue -
      • ExtendedColor

        public ExtendedColor​(int type,
                             int red,
                             int green,
                             int blue,
                             int alpha)
        Constructs an extended color of a certain type and a certain color.
        Parameters:
        type -
        red -
        green -
        blue -
        alpha -
    • Method Detail

      • getType

        public int getType()
        Gets the type of this color.
        Returns:
        one of the types (see constants)
      • getType

        public static int getType​(BaseColor color)
        Gets the type of a given color.
        Parameters:
        color -
        Returns:
        one of the types (see constants)
      • normalize

        static final float normalize​(float value)