Have Polyline default to flat stroke

This commit is contained in:
Grant Sanderson 2023-01-11 20:31:38 -08:00
parent bf84b1933b
commit ed26fdfab8

View file

@ -970,8 +970,13 @@ class Polygon(VMobject):
class Polyline(VMobject):
def __init__(self, *vertices: Vect3, **kwargs):
super().__init__(**kwargs)
def __init__(
self,
*vertices: Vect3,
flat_stroke: bool = True,
**kwargs
):
super().__init__(flat_stroke=flat_stroke, **kwargs)
self.set_points_as_corners(vertices)