railo.commons.color
Class ColorCaster
java.lang.Object
railo.commons.color.ColorCaster
public final class ColorCaster
- extends Object
ColorCaster
public ColorCaster()
contrast
public static int contrast(Color left,
Color right)
- calculate the contrast between 2 colors
- Parameters:
left
- right
-
- Returns:
- a int between 0 (badest) and 510 (best)
toColor
public static Color toColor(String strColor)
throws ExpressionException
- Throws:
ExpressionException
main
public static void main(String[] args)
throws ExpressionException
- Throws:
ExpressionException
toHexString
public static String toHexString(Color color)
Copyright © 2012 Railo