Add taper_width argument to FlashAround

This commit is contained in:
Grant Sanderson 2023-06-10 09:19:48 -07:00
parent f33b8d1d2f
commit 5d9a7f49e6

View file

@ -258,6 +258,7 @@ class FlashAround(VShowPassingFlash):
self,
mobject: Mobject,
time_width: float = 1.0,
taper_width: float = 0.0,
stroke_width: float = 4.0,
color: ManimColor = YELLOW,
buff: float = SMALL_BUFF,
@ -270,7 +271,7 @@ class FlashAround(VShowPassingFlash):
path.insert_n_curves(n_inserted_curves)
path.set_points(path.get_points_without_null_curves())
path.set_stroke(color, stroke_width)
super().__init__(path, time_width=time_width, **kwargs)
super().__init__(path, time_width=time_width, taper_width=taper_width, **kwargs)
def get_path(self, mobject: Mobject, buff: float) -> SurroundingRectangle:
return SurroundingRectangle(mobject, buff=buff)