Summary
Performs an interpolation between two colors using an easing function.
Syntax
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void Interpolate(ref Color start, ref Color end, float amount, EasingFunction easingFunction, out Color result)
Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.
Attributes
Type |
Description |
MethodImplAttribute |
|
Parameters
Name |
Type |
Description |
start |
Color |
Start color. |
end |
Color |
End color. |
amount |
float |
Value between 0 and 1 indicating the weight of end. |
easingFunction |
EasingFunction |
The function used to ease the interpolation. |
result |
Color |
When the method completes, contains the interpolation of the two colors. |
Return Value