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)
| 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 |
no test coverage detected