com.jtattoo.plaf
Class ColorHelper

java.lang.Object
  extended by com.jtattoo.plaf.ColorHelper

public class ColorHelper
extends Object

Author:
Michael Hagen

Method Summary
static Color brighter(Color c, double p)
           
static Color createColor(int r, int g, int b)
           
static Color[] createColorArr(Color c1, Color c2, int steps)
           
static Color darker(Color c, double p)
           
static int getGrayValue(Color c)
           
static Color median(Color c1, Color c2)
           
static Color toGray(Color c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createColor

public static final Color createColor(int r,
                                      int g,
                                      int b)

createColorArr

public static Color[] createColorArr(Color c1,
                                     Color c2,
                                     int steps)

brighter

public static Color brighter(Color c,
                             double p)

darker

public static Color darker(Color c,
                           double p)

median

public static Color median(Color c1,
                           Color c2)

getGrayValue

public static int getGrayValue(Color c)

toGray

public static Color toGray(Color c)


Copyright © 2011. All Rights Reserved.