mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Have Polyline default to flat stroke
This commit is contained in:
parent
bf84b1933b
commit
ed26fdfab8
1 changed files with 7 additions and 2 deletions
|
@ -970,8 +970,13 @@ class Polygon(VMobject):
|
||||||
|
|
||||||
|
|
||||||
class Polyline(VMobject):
|
class Polyline(VMobject):
|
||||||
def __init__(self, *vertices: Vect3, **kwargs):
|
def __init__(
|
||||||
super().__init__(**kwargs)
|
self,
|
||||||
|
*vertices: Vect3,
|
||||||
|
flat_stroke: bool = True,
|
||||||
|
**kwargs
|
||||||
|
):
|
||||||
|
super().__init__(flat_stroke=flat_stroke, **kwargs)
|
||||||
self.set_points_as_corners(vertices)
|
self.set_points_as_corners(vertices)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue