from manim import *
import numpy as np
class AnimateExample(Scene):
    def construct(self):
        square = Square().set_fill(RED, opacity=1.0)
        self.play(*[FadeIn(_o) for _o in [square]], run_time=1.0)
        # animate the change of color
        self.play(square.animate.set_fill(WHITE))
        self.wait(1)
        # animate the change of position and the rotation at the same time
        self.play(square.animate.shift(UP).rotate(PI / 3))
        self.wait(1)
        self.wait(0.60)