指示 (Indicate)¶
限定名称:manim.animation.indication.Indicate
- class Indicate(mobject=None, *args, use_override=True, **kwargs)[source]¶
基类:
Transform
通过临时调整大小和重新着色来指示 Mobject。
- 参数:
mobject (Mobject) – 要指示的 mobject。
scale_factor (float) – Mobject 将被临时缩放的因子
color (str) – Mobject 临时采用的颜色。
rate_func (Callable[[float, float | None], np.ndarray]) – 定义动画在每个时间点进度的函数。
kwargs – 要传递给
Succession
构造函数的额外参数
示例
示例:使用Indicate ¶
from manim import * class UsingIndicate(Scene): def construct(self): tex = Tex("Indicate").scale(3) self.play(Indicate(tex)) self.wait()
class UsingIndicate(Scene): def construct(self): tex = Tex("Indicate").scale(3) self.play(Indicate(tex)) self.wait()
方法
创建目标
属性
路径弧
路径函数
run_time