 |
Color4Lerp(Color4, Color4, Single) Method |
Performs a linear interpolation between two colors.
Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic 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
Color4The 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