def add(self, *mobjects): Scene.add(self, *list(mobjects) + self.submobjects)
def clean_up_from_scene(self, scene: Scene) -> None: Animation.clean_up_from_scene(self, scene) scene.remove(self.mobject) self.mobject[0].restore() scene.add(self.to_add_on_completion)
def add(self, *mobjects): Scene.add(self, *list(mobjects) + self.foreground_mobjects)
def add(self, *mobjects): self.submobjects += list(mobjects) Scene.add(self, *mobjects)
def add_foreground_mobjects(self, *mobjects): self.foreground_mobjects += list(mobjects) Scene.add(self, *mobjects)
def clean_up_from_scene(self, scene: Scene) -> None: super().clean_up_from_scene(scene) if self.replace_mobject_with_target_in_scene: scene.remove(self.mobject) scene.add(self.target_mobject)
def clean_up_from_scene(self, scene: Scene) -> None: for anim in self.animations: anim.update(0) scene.remove(self.mobject) scene.remove(self.to_remove) scene.add(self.to_add)