11
11
#. Ease Out - The animation has a smooth end.
12
12
#. Ease In Out - The animation has a smooth start as well as smooth end.
13
13
14
+ .. note:: The standard functions are not exported, so to use them you do something like this:
15
+ rate_func=rate_functions.ease_in_sine
16
+ On the other hand, the non-standard functions, which are used more commonly, are exported and can be used directly.
17
+
14
18
.. manim:: RateFunctions1Example
15
19
16
20
class RateFunctions1Example(Scene):
@@ -33,9 +37,9 @@ def construct(self):
33
37
Write(VGroup(label1, label2, label3)),
34
38
)
35
39
self.play(
36
- MoveAlongPath(dot1, line1, rate_func=ease_in_sine),
37
- MoveAlongPath(dot2, line2, rate_func=ease_out_sine),
38
- MoveAlongPath(dot3, line3, rate_func=ease_in_out_sine),
40
+ MoveAlongPath(dot1, line1, rate_func=rate_functions. ease_in_sine),
41
+ MoveAlongPath(dot2, line2, rate_func=rate_functions. ease_out_sine),
42
+ MoveAlongPath(dot3, line3, rate_func=rate_functions. ease_in_out_sine),
39
43
run_time=7
40
44
)
41
45
self.wait()
0 commit comments