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 N138_01(Scene):
    def construct(self):
        sc = self
        class RotateAndColor(Animation):

            def __init__(self, mobject, angle=TAU, start_color=BLUE, end_color=RED, about_point=ORIGIN, **kwargs):
                """
                构造函数。

                Parameters:
                    mobject - 这是要进行动画的对象，例如一个几何形状、文本或其他任何 Manim 支持的对象
                    angle - 指定旋转的总角度，默认值为 TAU 即 360度
                    start_color - 动画开始时对象的颜色，默认蓝色
                    end_color - 动画结束时对象的颜色，默认为红色
                    **kwargs - 用于传递额外的关键字参数到父类Animation的构造函数中
                """
                super().__init__(mobject, **kwargs)
                self.angle = angle
                self.start_color = start_color
                self.end_color = end_color
                self.about_point = about_point

            def interpolate_mobject(self, alpha):
                """
                实现动画效果的核心方法。

                Parameters:
                    alpha - 是一个介于 0 和 1 之间的参数，表示动画的进度
                """
                pass
        self.wait(0.5)
