From 5d9a7f49e638a43823966b80efb0fb85ffc9fa7f Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 10 Jun 2023 09:19:48 -0700 Subject: [PATCH] Add taper_width argument to FlashAround --- manimlib/animation/indication.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/animation/indication.py b/manimlib/animation/indication.py index 4078078b..6e95bb7c 100644 --- a/manimlib/animation/indication.py +++ b/manimlib/animation/indication.py @@ -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)