Mixing.Tint<T>

Extension Method in Mixing


Declaration

public static Color Tint<T>(this Color color, float percentage = 0.1F)
    where T : struct, IComponentModel

Description

Returns a tint of the color by mixing it with a percentage of white.

Type Parameters

TThe type of component model to use.

Parameters

colorThe color to tint.
percentageThe percentage of white to mix with [0..1] (default=0.1).

Returns

ColorThe tinted color.