from manim import *
import numpy as np
from numpy import array
run_time = 1
def dot(pos, **kwargs):
    return Dot(pos, **kwargs)
data = [
    ["90", "100", "60"],
    ["66", "78", "83"],
]
cols = [Text("小红"), Text("小华"), Text("小明")]
rows = [Text("语文"), Text("数学")]
class T041_08(Scene):
    def construct(self):
        sc = self
        cols = [Text('小红'), Text('小华'), Text('小明')]
        rows = [Text('语文'), Text('数学')]
        t = Table(data, row_labels=rows, col_labels=cols)
        lines = t.get_horizontal_lines()
        t = Table(data, row_labels=rows, col_labels=cols)
        lines = t.get_vertical_lines()
        objs = [t, lines[0].set_color(RED), lines[1].set_color(BLUE), t, lines[0].set_color(RED), lines[1].set_color(BLUE), lines[2].set_color(YELLOW)]
        g = VGroup(*objs).arrange(DOWN, buff=0.5)
        if g.width > 12: g.scale(12.0 / g.width)
        self.play(*[FadeIn(_o) for _o in [g]], run_time=1.0)
        self.play(FadeIn(g))
        self.wait(0.5)
        self.wait(3.10)