Files
QingLong/AI/Manim/generative-manim/datasets/code/FixedInFrameMObjectTest.py

13 lines
358 B
Python
Raw Normal View History

2025-08-15 09:13:13 +08:00
from manim import *
class FixedInFrameMObjectTest(ThreeDScene):
def construct(self):
axes = ThreeDAxes()
self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES)
text3d = Text("This is a 3D text")
self.add_fixed_in_frame_mobjects(text3d)
text3d.to_corner(UL)
self.add(axes)
self.wait()