Adjustment.Darker
Extension Method in Adjustment
Declaration
public static Color Darker(this Color color, float decrease = 0.1F)Description
Returns a new instance of the color with decreased lightness.
Parameters
| color | The color to adjust. |
| decrease | The amount to decrease the lightness [0..1] (default=0.1). |
Returns
| Color | A new instance of the color with decreased lightness. |
Overload
Declaration
public static Color[] Darker(this Color baseColor, int amount)Description
Generates a given amount of darker colors from the base color.
Parameters
| baseColor | The base color to generate new colors from. |
| amount | The amount of darker colors to generate. |
Returns
| Color[] | The array of darker colors. |