ApplyWave#
Qualified name: manim.animation.indication.ApplyWave
- class ApplyWave(mobject=None, *args, use_override=True, **kwargs)[source]#
Bases:
Homotopy
Send a wave through the Mobject distorting it temporarily.
- Parameters
mobject – The mobject to be distorted.
direction – The direction in which the wave nudges points of the shape
amplitude – The distance points of the shape get shifted
wave_func – The function defining the shape of one wave flank.
time_width – The length of the wave relative to the width of the mobject.
ripples – The number of ripples of the wave
run_time – The duration of the animation.
Examples
Example: ApplyingWaves ¶
from manim import * class ApplyingWaves(Scene): def construct(self): tex = Tex("WaveWaveWaveWaveWave").scale(2) self.play(ApplyWave(tex)) self.play(ApplyWave( tex, direction=RIGHT, time_width=0.5, amplitude=0.3 )) self.play(ApplyWave( tex, rate_func=linear, ripples=4 ))
Methods