ApplyPointwiseFunction#

Qualified name: manim.animation.transform.ApplyPointwiseFunction

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

Bases: manim.animation.transform.ApplyMethod

Animation that applies a pointwise function to a mobject.

Examples

Example: WarpSquare

from manim import *

class WarpSquare(Scene):
    def construct(self):
        square = Square()
        self.play(
            ApplyPointwiseFunction(
                lambda point: complex_to_R3(np.exp(R3_to_complex(point))), square
            )
        )
        self.wait()

Methods

Attributes

path_arc

path_func