GenericExtensionsLerp Method

Performs a lerp operation between two colors and returns the resulting color.

Definition

Namespace: MobileTrack.Common.Extensions
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static Color Lerp(
	Color firstColor,
	Color secondColor,
	float amount
)

Parameters

firstColor  Color
First color
secondColor  Color
Second color
amount  Single
Lerp ratio

Return Value

Color
Transformed color

Exceptions

ArgumentOutOfRangeExceptionif amount is larger than 1f or smaller than 0f

See Also