static double elasticStep(double t, [double s = 1.70158]) { if (t < 0.5) { return 0.5 * elasticStart(t * 2, s); } else { return 0.5 * elasticStop(t * 2 - 1, s) + 0.5; } }