darker

fnuint darker(uint c) nothrow @nogc

Returns a darker version of a color.

Mixes the color with black using a 0.67 weight.

Parameters

cColor to darken

Returns

Darker color value

Example:

uint darkRed = darker(Colors.RED);