Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Make LaggedStart adopt default rate_func and run_time of the animation it takes in

Grant Sanderson358b1e63137b
diff --git a/manimlib/animation/composition.py b/manimlib/animation/composition.py
index b5818d215..8763ff89c 100644
--- a/manimlib/animation/composition.py
+++ b/manimlib/animation/composition.py
@@ -220,10 +220,14 @@ class LaggedStart(Animation):
}
def __init__(self, AnimationClass, mobject, arg_creator=None, **kwargs):
+ for key in ["rate_func", "run_time"]:
+ if key in AnimationClass.CONFIG:
+ setattr(self, key, AnimationClass.CONFIG[key])
digest_config(self, kwargs)
for key in "rate_func", "run_time", "lag_ratio":
if key in kwargs:
kwargs.pop(key)
+
if arg_creator is None:
def arg_creator(mobject):
return (mobject,)