聚焦于¶
限定名称: manim.animation.indication.FocusOn
- class FocusOn(mobject=None, *args, use_override=True, **kwargs)[来源]¶
基础类:
Transform将聚光灯缩小到一个位置。
- Parameters:
focus_point (ndarray | Mobject) – 聚光灯缩小的点。如果它是一个
Mobject,将使用其中心。opacity (float) – 聚光灯的不透明度。
color (str) – 聚光灯的颜色。
run_time (float) – 动画的持续时间。
kwargs – 传递给
Succession构造函数的额外参数
示例
示例:使用FocusOn ¶
from manim import * class UsingFocusOn(Scene): def construct(self): dot = Dot(color=YELLOW).shift(DOWN) self.add(Tex("Focusing on the dot below:"), dot) self.play(FocusOn(dot)) self.wait()
class UsingFocusOn(Scene): def construct(self): dot = Dot(color=YELLOW).shift(DOWN) self.add(Tex("Focusing on the dot below:"), dot) self.play(FocusOn(dot)) self.wait()方法
create_target属性
path_arcpath_func