generator_mamableSet_spill static method
Implementation
static Generator<MamableSet> generator_mamableSet_spill(
Generator<double> direction,
double distance, {
(Curve, Curve)? curve,
required int total,
}) {
final interval = 1 / total;
return (index) => FMatable.spill(
fading: Between(begin: 0.0, end: 1.0, curve: curve),
sliding: FMatalue.between_offset_ofDirection(
direction(index),
0,
distance,
curve: curve.nullOrMap(CurveCurve.applyIntervalToEnd(interval * index)),
),
);
}