Package com.jackmeng.core.util
Class use_Color
java.lang.Object
com.jackmeng.core.util.use_Color
General Functionality class dealing with Color manipulation
- Author:
- Jack Meng
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Color
static String
colorToHex
(Color r) static Color
static Color
static String
intToHex
(int color) static boolean
is_gray
(int[] rgba, int tolerance) static Color
static Color
static Color
static int[]
parse_RGB
(int rgb) static String
rgbToHex
(int[] rgb) static Color
rndColor()
-
Constructor Details
-
use_Color
private use_Color()
-
-
Method Details
-
hexToRGB
- Parameters:
hex
-- Returns:
- Color
-
make
-
alpha_set
-
darker
-
lighter
-
rndColor
- Returns:
- Color
-
nullColor
- Returns:
- Color
-
rgbToHex
-
colorToHex
-
intToHex
-
is_gray
public static boolean is_gray(int[] rgba, int tolerance) -
parse_RGB
public static int[] parse_RGB(int rgb)
-