progress property

  1. @override
double progress
override

The current progress of the effect, a value between 0 and 1.

Implementation

@override
double get progress {
  final x = timer / duration;
  final amplitude = taperingCurve.transform(1 - x);
  return noise.noise2D(x * frequency, 0) * amplitude;
}