default Easing freeze(double before, double after) {
    return x -> {
      if (x < before) return 0.0;
      if (x > after) return 1.0;
      return calc((x - before) / (after - before));
    };
  }
default Easing freeze(double before, double after)