Enum Color

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Black
      Черный - rgb(0,0,0)
      BlackBright
      Серый - rgb(85,85,85) | rgb(128,128,128)
      Blue
      Синий - rgb(0,0,170) | rgb(0,0,128)
      BlueBright
      Синий-светлый - rgb(85,85,255) | rgb(0,0,255)
      Cyan
      Голубой(циан) - rgb(0,170,170) | rgb(0,128,128)
      CyanBright
      Голубой(циан)-светлый - rgb(85,255,255) | rgb(0,255,255)
      Green
      Зеленый - rgb(0,170,0) | rgb(0,128,0)
      GreenBright
      Зеленый-светлый - rgb(85,255,85) | rgb(0,255,0)
      Magenta
      Фиолетовый - rgb(170,0,170) | rgb(128,0,128)
      MagentaBright
      Фиолетовый-светлый - rgb(255,85,255) | rgb(255,0,255)
      Red
      Красный - rgb(170,0,0) | rgb(128,0,0)
      RedBright
      Красный-светлый - rgb(255,85,85) | rgb(255,0,0)
      White
      Светло серый - rgb(170,170,170) | rgb(0,128,128)
      WhiteBright
      Белый - rgb(255,255,255)
      Yellow
      Желтый - rgb(170,85,0) | rgb(128,128,0)
      YellowBright
      Желтый-светлый - rgb(255,255,85) | rgb(255,255,0)
    • Enum Constant Detail

      • Black

        public static final Color Black
        Черный - rgb(0,0,0)
      • BlackBright

        public static final Color BlackBright
        Серый - rgb(85,85,85) | rgb(128,128,128)
      • Red

        public static final Color Red
        Красный - rgb(170,0,0) | rgb(128,0,0)
      • RedBright

        public static final Color RedBright
        Красный-светлый - rgb(255,85,85) | rgb(255,0,0)
      • Green

        public static final Color Green
        Зеленый - rgb(0,170,0) | rgb(0,128,0)
      • GreenBright

        public static final Color GreenBright
        Зеленый-светлый - rgb(85,255,85) | rgb(0,255,0)
      • Yellow

        public static final Color Yellow
        Желтый - rgb(170,85,0) | rgb(128,128,0)
      • YellowBright

        public static final Color YellowBright
        Желтый-светлый - rgb(255,255,85) | rgb(255,255,0)
      • Blue

        public static final Color Blue
        Синий - rgb(0,0,170) | rgb(0,0,128)
      • BlueBright

        public static final Color BlueBright
        Синий-светлый - rgb(85,85,255) | rgb(0,0,255)
      • Magenta

        public static final Color Magenta
        Фиолетовый - rgb(170,0,170) | rgb(128,0,128)
      • MagentaBright

        public static final Color MagentaBright
        Фиолетовый-светлый - rgb(255,85,255) | rgb(255,0,255)
      • Cyan

        public static final Color Cyan
        Голубой(циан) - rgb(0,170,170) | rgb(0,128,128)
      • CyanBright

        public static final Color CyanBright
        Голубой(циан)-светлый - rgb(85,255,255) | rgb(0,255,255)
      • White

        public static final Color White
        Светло серый - rgb(170,170,170) | rgb(0,128,128)
      • WhiteBright

        public static final Color WhiteBright
        Белый - rgb(255,255,255)
    • Method Detail

      • values

        public static Color[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Color c : Color.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Color valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null