显示递增子集¶
限定名称: manim.animation.creation.ShowIncreasingSubsets
- class ShowIncreasingSubsets(mobject=None, *args, use_override=True, **kwargs)[source]¶
基类:
Animation
一次显示一个子对象,同时保留所有之前的子对象在屏幕上显示。
示例
示例: ShowIncreasingSubsetsScene ¶
from manim import * class ShowIncreasingSubsetsScene(Scene): def construct(self): p = VGroup(Dot(), Square(), Triangle()) self.add(p) self.play(ShowIncreasingSubsets(p)) self.wait()
class ShowIncreasingSubsetsScene(Scene): def construct(self): p = VGroup(Dot(), Square(), Triangle()) self.add(p) self.play(ShowIncreasingSubsets(p)) self.wait()
方法
根据alpha值对
Animation
的mobject进行插值。update_submobject_list
属性
run_time
- 参数:
group (Mobject)
suspend_mobject_updating (bool)
int_func (可调用对象[[np.ndarray], np.ndarray])