mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 12:57:45 +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
|
return self
|
||||||
|
|
||||||
def set_stroke(self, color=None, width=None, opacity=None,
|
def set_stroke(self, color=None, width=None, opacity=None,
|
||||||
background=False, family=True):
|
background=None, family=True):
|
||||||
if family:
|
if family:
|
||||||
for sm in self.submobjects:
|
for sm in self.submobjects:
|
||||||
sm.set_stroke(color, width, opacity, background, family)
|
sm.set_stroke(color, width, opacity, background, family)
|
||||||
self.update_rgbas_array("stroke_rgbas", color, opacity)
|
self.update_rgbas_array("stroke_rgbas", color, opacity)
|
||||||
if width is not None:
|
if width is not None:
|
||||||
self.stroke_width = np.array(listify(width))
|
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
|
return self
|
||||||
|
|
||||||
def set_style(self,
|
def set_style(self,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue