Have Write default stroke color match that of the mobject

This commit is contained in:
Grant Sanderson 2024-09-06 09:12:14 -05:00
parent f378d33d01
commit 2836acc3c7

View file

@ -149,9 +149,11 @@ class Write(DrawBorderThenFill):
run_time: float = -1, # If negative, this will be reassigned
lag_ratio: float = -1, # If negative, this will be reassigned
rate_func: Callable[[float], float] = linear,
stroke_color: ManimColor = WHITE,
stroke_color: ManimColor = None,
**kwargs
):
if stroke_color is None:
stroke_color = vmobject.get_color()
family_size = len(vmobject.family_members_with_points())
super().__init__(
vmobject,