首页 > TAG信息列表 > updater

【Manim】关于add_updater的基本使用方法

add_updater(update_function,index=None,call_update=False) 后面两个参数可以不写。 update_function更新函数一般填入一个lambda表达式。 例如:lambda d: d.next_to(square, RIGHT) class MovingSquareWithUpdaters(Scene): def construct(self): decimal = Decimal

manim updater animations

Scene1 创建长方体并移动: class myjob(Scene): def construct(self): box = Rectangle(stroke_color = GREEN_C, stroke_opacity = 0.7, fill_color = RED_B, fill_opacity = 0.5, height = 1, widhth = 1) self.add(box) self.play(box.animate.shi