Click or drag to resize
Ab4d.SharpEngine logo

Color4Lerp(Color4, Color4, Single) Method

Performs a linear interpolation between two colors.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Color4 Lerp(
	 in Color4 start,
	 in Color4 end,
	float amount
)

Parameters

start  Color4
Start color.
end  Color4
End color.
amount  Single
Value between 0 and 1 indicating the weight of end.

Return Value

Color4
The linear interpolation of the two colors.
Remarks
Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.
See Also