ScaleInPlace

限定名称: manim.animation.transform.ScaleInPlace

class ScaleInPlace(mobject=None, *args, use_override=True, **kwargs)[source]

基础:ApplyMethod

按一定比例缩放物体的动画。

示例

示例:ScaleInPlaceExample

from manim import *

class ScaleInPlaceExample(Scene):
    def construct(self):
        self.play(ScaleInPlace(Text("Hello World!"), 2))
class ScaleInPlaceExample(Scene):
    def construct(self):
        self.play(ScaleInPlace(Text("Hello World!"), 2))

方法

属性

path_arc

path_func

Parameters:
  • mobject (Mobject)

  • scale_factor (float)