Example:
// Get grayed version of red for disabled button
uint disabledRed = inactive(Colors.RED);uint inactive(uint c) nothrow @nogcReturns an inactive (grayed) version of a color.
Creates a desaturated, lower-contrast version of the color, suitable for drawing disabled UI elements.
c | Color to convert |
Example:
// Get grayed version of red for disabled button
uint disabledRed = inactive(Colors.RED);