swellPulseAt static method

double swellPulseAt(
  1. double morphT
)

The gel swell at morphT through the morph window.

Implementation

static double swellPulseAt(double morphT) {
  final x = (morphT / swellWindow).clamp(0.0, 1.0);
  return swellAmount * math.sin(math.pi * x);
}