ColorExtensions.Darken Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Darken(Color, single)

Lighten a color.

public static Color Darken(this Color color, float percentage)

Parameters

color
System.Drawing.Color

The color to darken.

percentage
single

A percentage to darken the color (0-100%).

Returns

System.Drawing.Color