mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Have border_width default to 0 for lower opacity
This commit is contained in:
parent
ec42326618
commit
0509e824c6
1 changed files with 4 additions and 3 deletions
|
@ -190,9 +190,10 @@ 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 border_width is not None:
|
if border_width is None:
|
||||||
for mob in self.get_family(recurse):
|
border_width = 0 if self.get_fill_opacity() < 1 else 0.5
|
||||||
mob.data["fill_border_width"] = border_width
|
for mob in self.get_family(recurse):
|
||||||
|
mob.data["fill_border_width"] = border_width
|
||||||
self.note_changed_fill()
|
self.note_changed_fill()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue