A community-maintained Python framework for creating mathematical animations.
Changed implementation of TransformFromCopy
Grant Sandersonf1b847deff1c
diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.pyindex e55c6c154..0b054292d 100644--- a/manimlib/animation/transform.py+++ b/manimlib/animation/transform.py@@ -91,12 +91,19 @@ class ReplacementTransform(Transform):}-class TransformFromCopy(ReplacementTransform):+class TransformFromCopy(Transform):+ """+ Performs a reversed Transform+ """+def __init__(self, mobject, target_mobject, **kwargs):- ReplacementTransform.__init__(- self, mobject.deepcopy(), target_mobject, **kwargs+ Transform.__init__(+ self, target_mobject, mobject, **kwargs)+ def interpolate(self, alpha):+ super().interpolate(1 - alpha)+class ClockwiseTransform(Transform):CONFIG = {