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.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
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