Class use_Color

java.lang.Object
com.jackmeng.core.util.use_Color

public final class use_Color extends Object
General Functionality class dealing with Color manipulation
Author:
Jack Meng
  • Constructor Details

    • use_Color

      private use_Color()
  • Method Details

    • hexToRGB

      public static Color hexToRGB(String hex)
      Parameters:
      hex -
      Returns:
      Color
    • make

    • alpha_set

      public static Color alpha_set(Color r, int alpha)
    • darker

      public static Color darker(Color clr, double factor)
    • lighter

      public static Color lighter(Color clr, double factor)
    • rndColor

      public static Color rndColor()
      Returns:
      Color
    • nullColor

      public static Color nullColor()
      Returns:
      Color
    • rgbToHex

      public static String rgbToHex(int[] rgb)
    • colorToHex

      public static String colorToHex(Color r)
    • intToHex

      public static String intToHex(int color)
    • is_gray

      public static boolean is_gray(int[] rgba, int tolerance)
    • parse_RGB

      public static int[] parse_RGB(int rgb)