ApplyPointwiseFunction¶
全限定名称: manim.animation.transform.ApplyPointwiseFunction
- class ApplyPointwiseFunction(mobject=None, *args, use_override=True, **kwargs)[source]¶
基类:
ApplyMethod
对 Mobject 应用逐点函数的动画。
示例
示例: WarpSquare ¶
from manim import * class WarpSquare(Scene): def construct(self): square = Square() self.play( ApplyPointwiseFunction( lambda point: complex_to_R3(np.exp(R3_to_complex(point))), square ) ) self.wait()
class WarpSquare(Scene): def construct(self): square = Square() self.play( ApplyPointwiseFunction( lambda point: complex_to_R3(np.exp(R3_to_complex(point))), square ) ) self.wait()
方法
属性
路径弧
路径函数
运行时间 (run_time)
- 参数:
function (types.MethodType)
mobject (Mobject)
run_time (float)