MCPcopy Index your code
hub / github.com/ManimCommunity/manim / insert

Method insert

manim/mobject/mobject.py:552–568  ·  view source on GitHub ↗

Inserts a mobject at a specific position into self.submobjects Effectively just calls ``self.submobjects.insert(index, mobject)``, where ``self.submobjects`` is a list. Highly adapted from ``Mobject.add``. Parameters ---------- index Th

(self, index: int, mobject: Mobject)

Source from the content-addressed store, hash-verified

550 return self
551
552 def insert(self, index: int, mobject: Mobject) -> None:
553 """Inserts a mobject at a specific position into self.submobjects
554
555 Effectively just calls ``self.submobjects.insert(index, mobject)``,
556 where ``self.submobjects`` is a list.
557
558 Highly adapted from ``Mobject.add``.
559
560 Parameters
561 ----------
562 index
563 The index at which
564 mobject
565 The mobject to be inserted.
566 """
567 self._assert_valid_submobjects([mobject])
568 self.submobjects.insert(index, mobject)
569
570 def __add__(self, mobject: Mobject):
571 raise NotImplementedError

Callers 8

get_moduleFunction · 0.45
visitFunction · 0.45
_add_non_time_updaterMethod · 0.45
add_updaterMethod · 0.45
_add_labelsMethod · 0.45
parse_argsMethod · 0.45
resolve_commandMethod · 0.45

Calls 1

Tested by

no test coverage detected