Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added docstring to `Mobject.center` (#3353)

Benjamin Hackl50d663eb8b3b
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index bd356f088..72faf99ea 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -1381,6 +1381,13 @@ class Mobject:
# Positioning methods
def center(self):
+ """Moves the center of the mobject to the center of the scene.
+
+ Returns
+ -------
+ :class:`.Mobject`
+ The centered mobject.
+ """
self.shift(-self.get_center())
return self