Adjustment.Desaturated

Extension Method in Adjustment

Declaration

public static Color Desaturated(this Color color, float decrease = 0.1F)

Description

Returns a new instance of the color with decreased saturation.

Parameters

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

Returns

ColorA new instance of the color with decreased saturation.

Overload

Declaration

public static Color[] Desaturated(this Color baseColor, int amount)

Description

Generates a given amount of desaturated colors from the base color.

Parameters

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

Returns

Color[]The array of desaturated colors.