Object
com.liferay.util.ColorUtil
public class ColorUtil
extends Object
- Author:
- Brian Wing Shun Chan, Ming-Gih Lam, David Truong
-
Constructor Summary
Constructors
-
Method Summary
blend(int[] color1,
int[] color2,
double ratio)
darker(int[] color,
double ratio)
static int[]
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ColorUtil
public ColorUtil()
-
Method Details
-
-
blend
public static Color blend(int[] color1,
int[] color2,
double ratio)
-
darker
public static Color darker(int[] color,
double ratio)
-
getHex
public static String getHex(int[] rgb)
-
getRGB
public static int[] getRGB(String hex)
-
lighter
public static Color lighter(int[] color,
double ratio)