from manim import *
class VectorTransformDemo(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_vector(Arrow(ORIGIN, [2, 1, 0], color=YELLOW, buff=0))
        self.apply_matrix([[1, -1], [1, 1]])
        self.wait(3.4)
