from manim import *
class UnitSquareDemo(LinearTransformationScene):
    def __init__(self):
        super().__init__(show_coordinates=True, leave_ghost_vectors=True)
    def construct(self):
        title = Text("LinearTransformationScene：单位正方形的变换", font="STLiti", font_size=26).to_edge(UP)
        self.add(title)
        self.add_unit_square(animate=True)
        self.apply_matrix([[1, -1], [1, 1]])
        self.wait(2.0)
