mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Have Write default stroke color match that of the mobject
This commit is contained in:
parent
f378d33d01
commit
2836acc3c7
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue