Moves the center of the mobject to the center of the scene. Returns ------- :class:`.Mobject` The centered mobject.
(self)
| 1570 | # Positioning methods |
| 1571 | |
| 1572 | def center(self) -> Self: |
| 1573 | """Moves the center of the mobject to the center of the scene. |
| 1574 | |
| 1575 | Returns |
| 1576 | ------- |
| 1577 | :class:`.Mobject` |
| 1578 | The centered mobject. |
| 1579 | """ |
| 1580 | self.shift(-self.get_center()) |
| 1581 | return self |
| 1582 | |
| 1583 | def align_on_border( |
| 1584 | self, direction: Vector3DLike, buff: float = DEFAULT_MOBJECT_TO_EDGE_BUFFER |