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
273 B
Raw Blame
# Source: manim/mobject/frame.py
import manimgx as m


class ScreenRectangleExample(m.Scene):
    def construct(self):
        rect = m.ScreenRectangle(aspect_ratio=16 / 9, height=4, color=m.BLUE)
        rect.set_stroke(width=4)
        self.add(rect)
        self.wait()