public class ColorUtil
extends Object
Constructor and Description |
---|
ColorUtil() |
Modifier and Type | Method and Description |
---|---|
static Color |
blend(Color color1,
Color color2,
double ratio) |
static Color |
blend(int[] color1,
int[] color2,
double ratio) |
static Color |
darker(int[] color,
double ratio) |
static String |
getHex(int[] rgb) |
static int[] |
getRGB(String hex) |
static Color |
lighter(int[] color,
double ratio) |
public static Color blend(Color color1, Color color2, double ratio)
public static Color blend(int[] color1, int[] color2, double ratio)
public static Color darker(int[] color, double ratio)
public static String getHex(int[] rgb)
public static int[] getRGB(String hex)
public static Color lighter(int[] color, double ratio)