manim.animation.indication.Wiggle

class Wiggle(mobject, scale_value=1.1, rotation_angle=0.06283185307179587, n_wiggles=6, scale_about_point=None, rotate_about_point=None, run_time=2, **kwargs)[source]

Bases: manim.animation.animation.Animation

Wiggle a Mobject.

Parameters
  • mobject (Mobject) – The mobject to wiggle.

  • scale_value (float) – The factor by which the mobject will be temporarilly scaled.

  • rotation_angle (float) – The wiggle angle.

  • n_wiggles (int) – The number of wiggles.

  • scale_about_point (Optional[numpy.ndarray]) – The point about which the mobject gets scaled.

  • rotate_about_point (Optional[numpy.ndarray]) – The point around which the mobject gets rotated.

  • run_time (float) – The duration of the animation

Return type

None

Examples

Example: ApplyingWaves

from manim import *

class ApplyingWaves(Scene):
    def construct(self):
        tex = Tex("Wiggle").scale(3)
        self.play(Wiggle(tex))
        self.wait()

Methods

get_rotate_about_point

get_scale_about_point

interpolate_submobject