A community-maintained Python framework for creating mathematical animations.
Moved ShrinkToCenter to transform, and made it a subclass of ScaleInPlace
Grant Sanderson1cc395ce8b3a
diff --git a/manimlib/animation/growing.py b/manimlib/animation/growing.pyindex 0d859a529..af123ab4a 100644--- a/manimlib/animation/growing.py+++ b/manimlib/animation/growing.py@@ -47,8 +47,3 @@ class SpinInFromNothing(GrowFromCenter):CONFIG = {"path_arc": PI,}---class ShrinkToCenter(Transform):- def create_target(self):- return VectorizedPoint(self.mobject.get_center())diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.pyindex b57680edc..fa8dd82eb 100644--- a/manimlib/animation/transform.py+++ b/manimlib/animation/transform.py@@ -218,6 +218,11 @@ class ScaleInPlace(ApplyMethod):)+class ShrinkToCenter(ScaleInPlace):+ def __init__(self, mobject, **kwargs):+ super().__init__(mobject, 0, **kwargs)++class Restore(ApplyMethod):def __init__(self, mobject, **kwargs):ApplyMethod.__init__(self, mobject.restore, **kwargs)