This Manim script demonstrates the use of 2D and 3D animations in Python with Manim Community Edition.
-
π¨ Background & Intro
Sets the background color and displays fixed text (Name, NIM, Class) in the corner of the screen. -
π΅ 2D Objects
Creates a yellow circle that moves to the center, scales up, and then transforms into a rectangle. -
π§ 3D Environment
AddsThreeDAxesas a reference frame, sets up the camera orientation, and begins an ambient camera rotation for dynamic viewing. -
π§± 3D Character Assembly
Builds a simple 3D figure usingPrismobjects:- Head (yellow prism)
- Body (green prism)
- Arms and legs (yellow prisms)
Includes animations such as scaling, rotating, shifting, and transforming to simulate assembly of the character.
-
π₯ Camera Movements
Smooth camera transitions between angles with ambient rotation to enhance the 3D effect.
The result is a short animated introduction: starting with your personal information, moving through 2D shape transformations, and ending with a fully animated 3D character.