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