 |
Color4Lerp(Color4, Color4, Single, Color4) Method |
Note: This API is now obsolete.
Performs a linear interpolation between two colors.
Namespace: Ab4d.SharpEngine.CommonAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax[ObsoleteAttribute("Method with ref parameters are obsolete and will be removed in one of the future version. Use the method with the same name and with in parameter instead.")]
public static void Lerp(
ref Color4 start,
ref Color4 end,
float amount,
out Color4 result
)Parameters
- start Color4
- Start color.
- end Color4
- End color.
- amount Single
- Value between 0 and 1 indicating the weight of end.
- result Color4
- When the method completes, contains 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