Java Utililty Methods Color Darker

List of utility methods to do Color Darker

Description

The list of methods to do Color Darker are organized into topic(s).

Method

ColorslightlyDarker(Color color)
Moderated version of Color.darker()
return new Color(Math.max((int) (color.getRed() * COLOR_SCALE_FACTOR), 0),
        Math.max((int) (color.getGreen() * COLOR_SCALE_FACTOR), 0),
        Math.max((int) (color.getBlue() * COLOR_SCALE_FACTOR), 0));
ColorwithAlphaAdjustingDarkness(Color c, double d)
with Alpha Adjusting Darkness
return shift(withAlpha(c, d), d);