A community-maintained Python framework for creating mathematical animations.
Add 3 functions for POC
nilaybhatia58918483a5bd
diff --git a/manim/utils/rate_functions.py b/manim/utils/rate_functions.pyindex dfd1a0c4d..9810453bd 100644--- a/manim/utils/rate_functions.py+++ b/manim/utils/rate_functions.py@@ -115,3 +115,12 @@ def exponential_decay(t, half_life=0.1):# The half-life should be rather small to minimize# the cut-off error at the endreturn 1 - np.exp(-t / half_life)++def ease_in_sine(t):+ return 1 - np.cos((t * np.pi) / 2)++def ease_out_sine(t):+ return np.sin((t * np.pi) / 2)++def ease_in_out_sine(t):+ return -(np.cos(np.pi * t) - 1) / 2\ No newline at end of file