Adjustment.Lighter

Extension Method in Adjustment

Declaration

public static Color Lighter(this Color color, float increase = 0.1F)

Description

Returns a new instance of the color with increased lightness.

Parameters

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

Returns

ColorA new instance of the color with increased lightness.

Overload

Declaration

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

Description

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

Parameters

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

Returns

Color[]The array of lighter colors.