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

colorThe color to adjust.
decreaseThe amount to decrease the lightness [0..1] (default=0.1).

Returns

ColorA 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

baseColorThe base color to generate new colors from.
amountThe amount of darker colors to generate.

Returns

Color[]The array of darker colors.