Color.darker

Color.darker

Class Overview | Class Members | This Package | All Packages

Syntax
public Color darker()
Returns
a new Color object, a darker version of this color.
Description
Creates a darker version of this color.

This method applies an arbitrary scale factor to each of the three RGB components of the color to create a darker version of the same color. Although brighter and darker are inverse operations, the results of a series of invocations of these two methods may be inconsistent because of rounding errors.

See Also
brighter