MeatMotion

ColorMotionAdapter

Linearly interpolate the Color endpoints at the eased Progress.

Namespace
MeatMotion.Adapters
Assembly
MeatMotion

Jump to members

public readonly struct ColorMotionAdapter : IMotionAdapter<Color, NoOptions>, IFloatComponents
MotionAdapters.cs · L79

Members

Evaluate

Read endpoints and options by reference and return the sampled value for the evaluation context.

public Color Evaluate(ref Color startValue, ref Color endValue, ref NoOptions options, in MotionEvaluationContext context)
Parameters and return value
startValue
ref Color Starting value.
endValue
ref Color End value.
options
ref NoOptions Options passed to this value adapter.
context
in MotionEvaluationContext Eased Progress and elapsed Time in seconds.
Returns
Color