[]
Performs a linear interpolation between two colors.
public static void LerpRef(out ColorF result, ref ColorF start, ref ColorF end, float amount)
Public Shared Sub LerpRef(ByRef result As ColorF, ByRef start As ColorF, ByRef [end] As ColorF, amount As Single)
| Type | Name | Description |
|---|---|---|
| ColorF | result | The linear interpolation of the two colors. |
| ColorF | start | Start color. |
| ColorF | end | End color. |
| float | amount | Value between 0 and 1 indicating the weight of |
This method performs the linear interpolation based on the following formula.
start + (end - start) * amount
Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.