generator_mamableSet_spill static method

Generator<MamableSet<MamableSingle>> generator_mamableSet_spill(
  1. Generator<double> direction,
  2. double distance, {
  3. (Curve, Curve)? curve,
  4. required int total,
})

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)),
        ),
      );
}