跳转至

下划线

合格名称:manim.mobject.geometry.shape\_matchers.Underline

Python
class Underline(mobject, buff=0.1, **kwargs)

Bases: Line

创建下划线。

例子

示例:下划线

UnderLine-1.png

Python
1
2
3
4
5
6
7
from manim import *

class UnderLine(Scene):
    def construct(self):
        man = Tex("Manim")  # Full Word
        ul = Underline(man)  # Underlining the word
        self.add(man, ul)

方法

属性

animate 用于对 的任何方法的应用程序进行动画处理self
animation_overrides
color
depth 对象的深度。
fill_color 如果有多种颜色(对于渐变),则返回第一个颜色
height mobject 的高度。
n_points_per_curve
sheen_factor
stroke_color
width mobject 的宽度。