from manim import *
from manim import *
import numpy as np
from numpy import array, pi, cos, sin
class Demo(Scene):
    def construct(self):
        t = Tex(r"$a^2$", " + ", r"$b^2$", " = ", r"$c^2$")
        t.set_color_by_tex("a^2", RED)
        t.set_color_by_tex("b^2", YELLOW)
        t.set_color_by_tex("c^2", GREEN)
        _obj = t
        self.play(FadeIn(_obj), run_time=1.0)
        self.wait(3.00)
        self.wait(1.60)
