Class Color

    • Field Detail

      • WHITE

        public static final Color WHITE
      • BLACK

        public static final Color BLACK
      • DARK_GREEN

        public static final Color DARK_GREEN
      • RED

        public static final Color RED
      • DARK_RED

        public static final Color DARK_RED
    • Constructor Detail

      • Color

        public Color​(int red,
                     int green,
                     int blue)
      • Color

        public Color​(String hex)
    • Method Detail

      • getBlue

        public int getBlue()
        Specified by:
        getBlue in interface RGB
      • getGreen

        public int getGreen()
        Specified by:
        getGreen in interface RGB
      • getRed

        public int getRed()
        Specified by:
        getRed in interface RGB
      • toHexString

        public static String toHexString​(RGB color)
      • toHexNumber

        public static String toHexNumber​(RGB color)
      • toHexDigits

        public static String toHexDigits​(int value)