mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 10:27:46 +00:00
Make it so that changing stroke, when there is background stroke, won't default it back to foreground
This commit is contained in:
parent
dc8eb317dd
commit
aa06a3c111
1 changed files with 3 additions and 2 deletions
|
|
@ -134,14 +134,15 @@ class VMobject(Mobject):
|
|||
return self
|
||||
|
||||
def set_stroke(self, color=None, width=None, opacity=None,
|
||||
background=False, family=True):
|
||||
background=None, family=True):
|
||||
if family:
|
||||
for sm in self.submobjects:
|
||||
sm.set_stroke(color, width, opacity, background, family)
|
||||
self.update_rgbas_array("stroke_rgbas", color, opacity)
|
||||
if width is not None:
|
||||
self.stroke_width = np.array(listify(width))
|
||||
self.draw_stroke_behind_fill = background
|
||||
if background is not None:
|
||||
self.draw_stroke_behind_fill = background
|
||||
return self
|
||||
|
||||
def set_style(self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue