mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Default to flat stroke for polygons
This commit is contained in:
parent
31715ec98a
commit
8c435d6181
1 changed files with 7 additions and 2 deletions
|
@ -911,8 +911,13 @@ class CubicBezier(VMobject):
|
|||
|
||||
|
||||
class Polygon(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, vertices[0]])
|
||||
|
||||
def get_vertices(self) -> Vect3Array:
|
||||
|
|
Loading…
Add table
Reference in a new issue