SampSharp
SampSharp
SampSharp.Entities.SAMP
Color Structure
Color Methods
AddGammaCorrection Method
Darken Method
Equals Method
FromInteger Method
FromString Method
FromVehicleColor Method
GetHashCode Method
Grayscale Method
Lerp Method
Lighten Method
RemoveGammaCorrection Method
ToInteger Method
ToString Method
Color
Lerp 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#
Copy
public
static
Color
Lerp
(
Color
value1
,
Color
value2
,
float
amount
,
bool
blendAlpha
=
false
)
Parameters
value1
Type:
SampSharp.Entities.SAMP
Color
Source
Color
.
value2
Type:
SampSharp.Entities.SAMP
Color
Destination
Color
.
amount
Type:
System
Single
Interpolation factor.
blendAlpha
(Optional)
Type:
System
Boolean
Whether it also blends alpha.
Return Value
Type:
Color
Interpolated
Color
.
See Also
Reference
Color Structure
SampSharp.Entities.SAMP Namespace