Mixing.Shade<T>
Extension Method in Mixing
Declaration
public static Color Shade<T>(this Color color, float percentage = 0.1F)
where T : struct, IComponentModel
Description
Returns a shade of the color by mixing it with a percentage of black.
Type Parameters
T | The type of component model to use. |
Parameters
color | The color to shade. |
percentage | The percentage of black to mix with [0..1] (default=0.1). |
Returns
Color | The shaded color. |