mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +08:00
scene.apply method, which required switching order or ApplyFunction arguments
This commit is contained in:
@ -154,6 +154,12 @@ class Scene(object):
|
||||
animation.clean_up()
|
||||
return self
|
||||
|
||||
def apply(self, AnimationClass, *args, **kwargs):
|
||||
self.play(*[
|
||||
AnimationClass(mobject, *args, **kwargs)
|
||||
for mobject in self.mobjects
|
||||
])
|
||||
|
||||
def get_frame(self):
|
||||
return disp.paint_mobject(
|
||||
CompoundMobject(*self.mobjects), self.background
|
||||
|
Reference in New Issue
Block a user