mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Add winding fill to VMobject args
This commit is contained in:
parent
7deaf4cb11
commit
bc5c78de83
1 changed files with 2 additions and 1 deletions
|
@ -89,6 +89,7 @@ class VMobject(Mobject):
|
||||||
use_simple_quadratic_approx: bool = False,
|
use_simple_quadratic_approx: bool = False,
|
||||||
# Measured in pixel widths
|
# Measured in pixel widths
|
||||||
anti_alias_width: float = 1.0,
|
anti_alias_width: float = 1.0,
|
||||||
|
use_winding_fill: bool = True,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
self.fill_color = fill_color or color or DEFAULT_FILL_COLOR
|
self.fill_color = fill_color or color or DEFAULT_FILL_COLOR
|
||||||
|
@ -103,7 +104,7 @@ class VMobject(Mobject):
|
||||||
self.flat_stroke = flat_stroke
|
self.flat_stroke = flat_stroke
|
||||||
self.use_simple_quadratic_approx = use_simple_quadratic_approx
|
self.use_simple_quadratic_approx = use_simple_quadratic_approx
|
||||||
self.anti_alias_width = anti_alias_width
|
self.anti_alias_width = anti_alias_width
|
||||||
self._use_winding_fill = True
|
self._use_winding_fill = use_winding_fill
|
||||||
|
|
||||||
self.needs_new_triangulation = True
|
self.needs_new_triangulation = True
|
||||||
self.triangulation = np.zeros(0, dtype='i4')
|
self.triangulation = np.zeros(0, dtype='i4')
|
||||||
|
|
Loading…
Add table
Reference in a new issue