动画部分 animation¶
- Creation
- Fading
- Growing
- Indication
- Movement
- Numbers
- Rotation
- Transform
- Transform
- ReplacementTransform
- TransformFromCopy
- ClockwiseTransform
- CounterclockwiseTransform
- MoveToTarget
- ApplyMethod
- ApplyPointwiseFunction
- ApplyPointwiseFunctionToCenter
- FadeToColor
- ScaleInPlace
- ShrinkToCenter
- Restore
- ApplyFunction
- ApplyMatrix
- ApplyComplexFunction
- CyclicReplace
- Swap
- TransformAnimations
- Transform Matching Parts
- Update
- Composition
- Specialized
动画基类Animation¶
-
class
manimlib.animation.animation.
Animation
(mobject, **kwargs)¶
通用参数:
run_time¶
表示一个动画运行的总时间(单位为秒)
rate_func¶
一个动画运行的速率参数,是一个定义域为[0,1]的函数,自带的如下
效果如下:
lag_ratio¶
对于每个子物体执行动画,两个子物体之间延迟的半分比(0~1之间),默认为0,即对所有子物体同时执行动画