Create and return an identical copy of the :class:`Mobject` including all :attr:`submobjects`. Returns ------- :class:`Mobject` The copy. Note ---- The clone is initially not visible in the Scene, even if the original was.
(self)
| 882 | ) |
| 883 | |
| 884 | def copy(self) -> Self: |
| 885 | """Create and return an identical copy of the :class:`Mobject` including all |
| 886 | :attr:`submobjects`. |
| 887 | |
| 888 | Returns |
| 889 | ------- |
| 890 | :class:`Mobject` |
| 891 | The copy. |
| 892 | |
| 893 | Note |
| 894 | ---- |
| 895 | The clone is initially not visible in the Scene, even if the original was. |
| 896 | """ |
| 897 | return copy.deepcopy(self) |
| 898 | |
| 899 | def generate_target(self, use_deepcopy: bool = False) -> Self: |
| 900 | self.target = None # Prevent unbounded linear recursion |