mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Tweak default configuration for Underline
This commit is contained in:
parent
0d415036a9
commit
6b24860bbf
1 changed files with 3 additions and 1 deletions
|
@ -110,6 +110,7 @@ class Underline(Line):
|
||||||
buff: float = SMALL_BUFF,
|
buff: float = SMALL_BUFF,
|
||||||
stroke_color=WHITE,
|
stroke_color=WHITE,
|
||||||
stroke_width: float | Sequence[float] = [0, 3, 3, 0],
|
stroke_width: float | Sequence[float] = [0, 3, 3, 0],
|
||||||
|
stretch_factor=1.2,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
@ -119,5 +120,6 @@ class Underline(Line):
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
self.insert_n_curves(30)
|
self.insert_n_curves(30)
|
||||||
self.match_width(mobject)
|
self.set_stroke(stroke_color, stroke_width)
|
||||||
|
self.set_width(mobject.get_width() * stretch_factor)
|
||||||
self.next_to(mobject, DOWN, buff=buff)
|
self.next_to(mobject, DOWN, buff=buff)
|
||||||
|
|
Loading…
Add table
Reference in a new issue