lerp static method

ScatterSpot lerp(
  1. ScatterSpot a,
  2. ScatterSpot b,
  3. double t
)
override

Lerps a ScatterSpot based on t value, check Tween.lerp.

Implementation

static ScatterSpot lerp(ScatterSpot a, ScatterSpot b, double t) {
  return ScatterSpot(
    lerpDouble(a.x, b.x, t)!,
    lerpDouble(a.y, b.y, t)!,
    show: b.show,
    dotPainter: a.dotPainter.lerp(a.dotPainter, b.dotPainter, t),
  );
}