utilities
Class ColorChanger

java.lang.Object
  extended by utilities.ColorChanger

public class ColorChanger
extends Object

A Class that is used for creating a new Color based on another one.

Author:
Ben Robboy, Michael M Kozelsky Created on: Oct 12, 2006

Constructor Summary
ColorChanger()
           
 
Method Summary
static Color darken(Color c)
          Gradually darkens a color.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorChanger

public ColorChanger()
Method Detail

darken

public static Color darken(Color c)
Gradually darkens a color. If called repeatedly on the same color, it will eventually go to black. Written by Ben Robboy.

Parameters:
c - a color to darken
Returns:
the color darkened slightly