org.biojava.bio.structure.gui.util.color
Class ColorUtils
java.lang.Object
org.biojava.bio.structure.gui.util.color.ColorUtils
public class ColorUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
orange
public static Color orange
cyan
public static Color cyan
gold
public static Color gold
colorWheel
public static final Color[] colorWheel
ColorUtils
public ColorUtils()
main
public static void main(String[] args)
rotateHue
public static Color rotateHue(Color color,
float fraction)
getIntermediate
public static Color getIntermediate(Color start,
Color end,
int stepSize,
int position)
darker
public static Color darker(Color color,
double fraction)
- Make a color darker. (RGB color scheme)
- Parameters:
color
- Color to make darker.fraction
- Darkness fraction.
- Returns:
- Darker color.
lighter
public static Color lighter(Color color,
double fraction)
- Make a color lighter. (RGB color scheme)
- Parameters:
color
- Color to make lighter.fraction
- Darkness fraction.
- Returns:
- Lighter color.