net.infonode.util

Class ColorUtil

public final class ColorUtil extends Object

Method Summary
static Coloradd(Color c1, Color c2)
static Colorblend(Color c1, Color c2, double v)
static Colorcopy(Color c)
static ColorgetOpposite(Color c)
static Colorhighlight(Color c)
static booleanisDark(Color c)
static Colormult(Color c, double amount)
static ColorsetAlpha(Color c, int alpha)
static Colorshade(Color c, double amount)

Method Detail

add

public static final Color add(Color c1, Color c2)

blend

public static Color blend(Color c1, Color c2, double v)

copy

public static Color copy(Color c)

getOpposite

public static Color getOpposite(Color c)

highlight

public static Color highlight(Color c)

isDark

public static boolean isDark(Color c)

mult

public static final Color mult(Color c, double amount)

setAlpha

public static Color setAlpha(Color c, int alpha)

shade

public static Color shade(Color c, double amount)