Tex¶
限定名称: manim.mobject.text.tex\_mobject.Tex
- class Tex(*tex_strings, arg_separator='', tex_environment='center', **kwargs)[source]¶
基类:
MathTex
在普通模式下用LaTeX编译的字符串。
可以使用
color
参数设置颜色。tex_string
中通过 TeX 命令\color
或\textcolor
着色的任何部分将保留其原始颜色。测试
检查写入LaTeX字符串是否有效
>>> Tex('The horse does not eat cucumber salad.') Tex('The horse does not eat cucumber salad.')
方法
属性
animate (动画)
用于动画化
self
的任何方法的应用。animation_overrides (动画覆盖)
颜色
depth (深度)
mobject 的深度。
fill_color (填充颜色)
如果存在多种颜色(用于渐变),则返回第一种颜色
字体大小
tex mobject 的字体大小。
哈希种子
代表生成的mobject点结果的唯一哈希值。
height (高度)
mobject 的高度。
n_points_per_curve (每条曲线的点数)
sheen_factor (光泽因子)
stroke_color (描边颜色)
width (宽度)
mobject 的宽度。
- _original__init__(*tex_strings, arg_separator='', tex_environment='center', **kwargs)¶
初始化自身。有关准确签名,请参阅 help(type(self))。