ColorExtensions.Mix Method

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

Mix(Color, Color, single)

Mix two colors. Replicating the Mix function in SASS

public static Color Mix(this Color color1, Color color2, float weight = 50F)

Parameters

color1
System.Drawing.Color

The first color.

color2
System.Drawing.Color

The second color.

weight
single

Percentage weight of the first color (0-100%).

Returns

System.Drawing.Color