CSE115.Utilities
Class ColorChanger

java.lang.Object
  extended by CSE115.Utilities.ColorChanger

public class ColorChanger
extends Object


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