线宽Manim

Line width Manim

有没有办法增加动画中特定线条的宽度?

我尝试更改 constants.py 中的 DEFAULT_STROKE_WIDTH 并将 CONFIG 中的 stroke_width 设置为某个数字,但没有成功。

这是我的部分代码。我的线只是沿着点元组的路径。

        path = VMobject()
        path.set_points_smoothly([*[coord(x,y) for x,y in self.tuples]])
        path.set_color(RED)

有什么建议吗?

UPD

constants.py中设置DEFAULT_STROKE_WIDTH有效,但它会改变所有行的宽度也就不足为奇了。

可以使用参数 stroke_width

例如:

rect = Rectangle(height=1, width=1, stroke_width=1)

P.S。在使用对象参数后我得到了答案。