Click or drag to resize

ColorLerp Method

Performs linear interpolation of Color.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public static Color Lerp(
	Color value1,
	Color value2,
	float amount,
	bool blendAlpha = false
)

Parameters

value1
Type: SampSharp.Entities.SAMPColor
Source Color.
value2
Type: SampSharp.Entities.SAMPColor
Destination Color.
amount
Type: SystemSingle
Interpolation factor.
blendAlpha (Optional)
Type: SystemBoolean
Whether it also blends alpha.

Return Value

Type: Color
Interpolated Color.
See Also