Skip to content

The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.

Python
314 B
Raw Blame
# Source: manim/animation/animation.py
import manimgx as m


class MySquare(m.Square):
    @m.override_animation(m.FadeIn)
    def _fade_in_override(self, **kwargs):
        return m.Create(self, **kwargs)


class OverrideAnimationExample(m.Scene):
    def construct(self):
        self.play(m.FadeIn(MySquare()))