public class ColorUtils
extends java.lang.Object
| Constructor and Description |
|---|
ColorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getColor(int color0,
int color1,
float p) |
static int |
getColorWithAlpha(int c0,
int c1,
float p) |
static boolean |
isColorDark(int color)
Calculate whether a color is light or dark, based on a commonly known
brightness formula.
|
public static int getColor(int color0,
int color1,
float p)
public static int getColorWithAlpha(int c0,
int c1,
float p)
public static boolean isColorDark(int color)
http://en.wikipedia.org/wiki/HSV_color_space%23Lightness}