MCPcopy
hub / github.com/ManimCommunity/manim / add_foreground_mobjects

Method add_foreground_mobjects

manim/scene/scene.py:761–778  ·  view source on GitHub ↗

Adds mobjects to the foreground, and internally to the list foreground_mobjects, and mobjects. Parameters ---------- *mobjects The Mobjects to add to the foreground. Returns ------ Scene The Scene, with the fo

(self, *mobjects: Mobject)

Source from the content-addressed store, hash-verified

759
760 # TODO, remove this, and calls to this
761 def add_foreground_mobjects(self, *mobjects: Mobject) -> Scene:
762 """
763 Adds mobjects to the foreground, and internally to the list
764 foreground_mobjects, and mobjects.
765
766 Parameters
767 ----------
768 *mobjects
769 The Mobjects to add to the foreground.
770
771 Returns
772 ------
773 Scene
774 The Scene, with the foreground mobjects added.
775 """
776 self.foreground_mobjects = list_update(self.foreground_mobjects, mobjects)
777 self.add(*mobjects)
778 return self
779
780 def add_foreground_mobject(self, mobject: Mobject) -> Scene:
781 """

Callers 2

activate_zoomingMethod · 0.80

Calls 2

addMethod · 0.95
list_updateFunction · 0.85

Tested by

no test coverage detected