From 09d147c8ef0c9611b0ce0a10a403ae5b40c75ac9 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 19 Aug 2024 14:35:19 -0500 Subject: [PATCH] Set default border width to 0.5, and keep it for opacities < 1 --- manimlib/mobject/types/vectorized_mobject.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 43922125..aca1a881 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -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):