TransformMatchingShapes#
Qualified name: manim.animation.transform\_matching\_parts.TransformMatchingShapes
- class TransformMatchingShapes(mobject=None, *args, use_override=True, **kwargs)[source]#
Bases:
TransformMatchingAbstractBaseAn animation trying to transform groups by matching the shape of their submobjects.
Two submobjects match if the hash of their point coordinates after normalization (i.e., after translation to the origin, fixing the submobject height at 1 unit, and rounding the coordinates to three decimal places) matches.
See also
Examples
Example: Anagram ¶
from manim import * class Anagram(Scene): def construct(self): src = Text("the morse code") tar = Text("here come dots") self.play(Write(src)) self.wait(0.5) self.play(TransformMatchingShapes(src, tar, path_arc=PI/2)) self.wait(0.5)
Methods
get_mobject_keyget_mobject_parts