mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add shortcut for setting black background stroke
This commit is contained in:
parent
a7173142bf
commit
781a9934fd
1 changed files with 4 additions and 0 deletions
|
@ -135,6 +135,10 @@ class VMobject(Mobject):
|
||||||
mob.draw_stroke_behind_fill = background
|
mob.draw_stroke_behind_fill = background
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
def set_backstroke(self, color=BLACK, width=3, background=True):
|
||||||
|
self.set_stroke(color, width, background=background)
|
||||||
|
return self
|
||||||
|
|
||||||
def align_stroke_width_data_to_points(self, recurse=True):
|
def align_stroke_width_data_to_points(self, recurse=True):
|
||||||
for mob in self.get_family(recurse):
|
for mob in self.get_family(recurse):
|
||||||
mob.data["stroke_width"] = resize_with_interpolation(
|
mob.data["stroke_width"] = resize_with_interpolation(
|
||||||
|
|
Loading…
Add table
Reference in a new issue