from manim import *
import numpy as np
from numpy import array, pi, cos, sin
run_time = 1
data = [[1, 2], [3, 4]]
def dot(pos, **kwargs):
    return Dot(pos, **kwargs)
class N109_01(Scene):
    def construct(self):
        sc = self
        s1 = Square(color=BLUE)
        s2 = Square(color=GREEN)
        s3 = Square(color=YELLOW)
        VGroup(s1, s2, s3).scale(0.8).arrange(RIGHT, buff=0.5)
        self.play(Create(s1, rate_func=lambda x: x), Create(s2, rate_func=lambda x: np.sqrt(x)), Create(s3, rate_func=lambda x: x ** 2), run_time=2)
        self.wait()
        self.play(Uncreate(s3, rate_func=lambda x: x), Uncreate(s2, rate_func=lambda x: np.sqrt(x)), Uncreate(s1, rate_func=lambda x: x ** 2), run_time=2)
        self.wait(0.5)
        self.wait(0.40)