interpolate method

void interpolate(
  1. Mobject a,
  2. Mobject b,
  3. double alpha, {
  4. PathFunc? pathFunc,
})

Implementation

void interpolate(Mobject a, Mobject b, double alpha, {PathFunc? pathFunc}) {
  var _pathFunc = pathFunc ?? straightPath;
  points = _pathFunc(a.points, b.points, alpha);

  interpolateColor(a, b, alpha);
}