from manim import *
class VectorScaleDemo(VectorScene):
    def construct(self):
        title = Text("VectorScene：向量的标量乘法", font="STLiti", font_size=30).to_edge(UP)
        self.add(title)
        self.add_plane(animate=True, x_range=[-6, 6], y_range=[-6, 6], x_length=5, y_length=5)
        self.add_axes(animate=True)
        v = self.add_vector([1, 0.5], color=BLUE, animate=True)
        self.label_vector(v, "v")
        v2 = self.add_vector([2, 1], color=YELLOW, animate=True)
        self.label_vector(v2, "2v")
        self.wait(2.0)
