下划线¶
限定名称: manim.mobject.geometry.shape\_matchers.Underline
- class Underline(mobject, buff=0.1, **kwargs)[source]¶
基础类:
Line创建下划线。
示例
示例:下划线 ¶
from manim import * class UnderLine(Scene): def construct(self): man = Tex("Manim") # Full Word ul = Underline(man) # Underlining the word self.add(man, ul)
class UnderLine(Scene): def construct(self): man = Tex("Manim") # Full Word ul = Underline(man) # Underlining the word self.add(man, ul)方法
属性
animate用于动画化
self的任何方法的应用。animation_overridescolordepthmobject的深度。
fill_color如果有多种颜色(用于渐变),则返回第一个颜色
heightmobject的高度。
n_points_per_curvesheen_factorstroke_colorwidthmobject的宽度。
- Parameters:
mobject (Mobject)
buff (float)