manim.animation.creation.Unwrite

class Unwrite(mobject=None, *args, use_override=True, **kwargs)[source]

Bases: manim.animation.creation.Write

Simulate erasing by hand a Text or a VMobject.

Parameters
  • reverse (bool) – Set True to have the animation start erasing from the last submobject first.

  • mobject (Optional[manim.mobject.mobject.Mobject]) –

  • use_override (bool) –

Examples

Example: UnwriteReverseFalse

from manim import *

class UnwriteReverseFalse(Scene):
    def construct(self):
        text = Tex("Alice and Bob").scale(3)
        self.add(text)
        self.play(Unwrite(text))

Example: UnwriteReverseTrue

from manim import *

class UnwriteReverseTrue(Scene):
    def construct(self):
        text = Tex("Alice and Bob").scale(3)
        self.add(text)
        self.play(Unwrite(text,reverse=True))

Methods

begin

Begin the animation.

finish

Finish the animation.

reverse_submobjects

begin()[source]

Begin the animation.

This method is called right as an animation is being played. As much initialization as possible, especially any mobject copying, should live in this method.

Return type

None

finish()[source]

Finish the animation.

This method gets called when the animation is over.

Return type

None