darker()

Darkens the Color object.

Syntax

Color  darker()

Usage

Creates a darker version of the Color object by applying an arbitrary scale factor to each of the RGB components. Invoking a series of invocations of the darker and brighter methods might give an inconsistent result because of rounding errors.

Example

Color.RED.darker()