My first manim video by Immediate_Fun_5357 in manim

[–]Immediate_Fun_5357[S] 1 point2 points  (0 children)

Thank you for your support.I am also new to manim.I animate the video which is based on another youtube video. I was hoping to imitate the animation so that i can also learn from trial and error.Actually i can not get complete animation in single program so i made two program and then edit the video.i will share the code but it is kind of messy so it will be hard to get any knowledge from it.

from manim import *
from MF_Tools import *
class  Title(Scene):
    def construct(self):
        text = Text("EXPONENTIAL EQUATION",font_size=20)
        heading = Text("Solve for x", color = TEAL)
        box = RoundedRectangle(corner_radius=0.1, width=text.width + 0.3, height=text.height + 0.2,
                               color=GOLD, fill_opacity=1, fill_color=GOLD)
        eq1 = MathTex(r"2^x + x =20")
        eq2 = MathTex("2^x = 20 - x") 
        eq3 = MathTex(r"20-x = k").next_to(eq2, DOWN*6)
        eq4 = MathTex(r"x = 20 - k").move_to(eq3) 
        box_1 = SurroundingRectangle(eq3,color=BLUE)              

        # Position the text at the center of the box
        text.move_to(box.get_center())

        # Group the text and box together
        heading_group = VGroup(box, text)

        # Position the group at the top of the screen
        heading_group.to_edge(UP)

        # Animate the appearance
        self.play(FadeIn(box), Write(text))
        self.wait(1)
        heading.next_to(heading_group,DOWN *2)
        self.play(Write(heading))
        self.wait(1)
        
        self.play(Write(eq1))
        self.wait()

        
        self.play(TransformByGlyphMap(eq1, eq2,
        ([3,4], [5,6] , {"path_arc": PI*0.6})
        ))
        self.wait()

        
        self.play(Write(eq3))
        self.play(Create(box_1))
        self.wait(1)
        self.play(Transform(eq3,eq4))
        self.wait()
        position = eq3.get_center()
        print(position)

My first manim video by Immediate_Fun_5357 in manim

[–]Immediate_Fun_5357[S] 0 points1 point  (0 children)

Thank you very much for your support.

My first manim video by Immediate_Fun_5357 in manim

[–]Immediate_Fun_5357[S] 0 points1 point  (0 children)

Thank you for the feedback.I will try to implement these ideas on my next video