ApplyMatrix#

Qualified name: manim.animation.transform.ApplyMatrix

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

Bases: manim.animation.transform.ApplyPointwiseFunction

Applies a matrix transform to an mobject.

Parameters
  • matrix – The transformation matrix.

  • mobject – The Mobject.

  • about_point – The origin point for the transform. Defaults to ORIGIN.

  • kwargs – Further keyword arguments that are passed to ApplyPointwiseFunction.

Examples

Example: ApplyMatrixExample

from manim import *

class ApplyMatrixExample(Scene):
    def construct(self):
        matrix = [[1, 1], [0, 2/3]]
        self.play(ApplyMatrix(matrix, Text("Hello World!")), ApplyMatrix(matrix, NumberPlane()))

Methods

initialize_matrix

Attributes

path_arc

path_func