mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add taper_width argument to FlashAround
This commit is contained in:
parent
f33b8d1d2f
commit
5d9a7f49e6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue