mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 08:54:38 +08:00
Set default border width to 0.5, and keep it for opacities < 1
This commit is contained in:
@ -95,7 +95,7 @@ class VMobject(Mobject):
|
||||
use_simple_quadratic_approx: bool = False,
|
||||
# Measured in pixel widths
|
||||
anti_alias_width: float = 1.5,
|
||||
fill_border_width: float = 0.0,
|
||||
fill_border_width: float = 0.5,
|
||||
use_winding_fill: bool = True,
|
||||
**kwargs
|
||||
):
|
||||
@ -184,8 +184,6 @@ class VMobject(Mobject):
|
||||
recurse: bool = True
|
||||
) -> Self:
|
||||
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:
|
||||
self.border_width = border_width
|
||||
for mob in self.get_family(recurse):
|
||||
|
Reference in New Issue
Block a user