mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Set default border width to 0.5, and keep it for opacities < 1
This commit is contained in:
parent
39bcead679
commit
09d147c8ef
1 changed files with 1 additions and 3 deletions
|
@ -95,7 +95,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.5,
|
anti_alias_width: float = 1.5,
|
||||||
fill_border_width: float = 0.0,
|
fill_border_width: float = 0.5,
|
||||||
use_winding_fill: bool = True,
|
use_winding_fill: bool = True,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
|
@ -184,8 +184,6 @@ class VMobject(Mobject):
|
||||||
recurse: bool = True
|
recurse: bool = True
|
||||||
) -> Self:
|
) -> Self:
|
||||||
self.set_rgba_array_by_color(color, opacity, 'fill_rgba', recurse)
|
self.set_rgba_array_by_color(color, opacity, 'fill_rgba', recurse)
|
||||||
if opacity is not None and 0 < opacity < 1 and border_width is None:
|
|
||||||
border_width = 0
|
|
||||||
if border_width is not None:
|
if border_width is not None:
|
||||||
self.border_width = border_width
|
self.border_width = border_width
|
||||||
for mob in self.get_family(recurse):
|
for mob in self.get_family(recurse):
|
||||||
|
|
Loading…
Add table
Reference in a new issue