inactive

fnuint inactive(uint c) nothrow @nogc

Returns an inactive (grayed) version of a color.

Creates a desaturated, lower-contrast version of the color, suitable for drawing disabled UI elements.

Parameters

cColor to convert

Returns

Inactive version of the color

Example:

// Get grayed version of red for disabled button
uint disabledRed = inactive(Colors.RED);