ShowIncreasingSubsets#
Qualified name: manim.animation.creation.ShowIncreasingSubsets
- class ShowIncreasingSubsets(mobject=None, *args, use_override=True, **kwargs)[source]#
Bases:
Animation
Show one submobject at a time, leaving all previous ones displayed on screen.
Examples
Example: ShowIncreasingSubsetsScene ¶
from manim import * class ShowIncreasingSubsetsScene(Scene): def construct(self): p = VGroup(Dot(), Square(), Triangle()) self.add(p) self.play(ShowIncreasingSubsets(p)) self.wait()
Methods
Interpolates the mobject of the
Animation
based on alpha value.update_submobject_list
- interpolate_mobject(alpha)[source]#
Interpolates the mobject of the
Animation
based on alpha value.- Parameters
alpha (float) – A float between 0 and 1 expressing the ratio to which the animation is completed. For example, alpha-values of 0, 0.5, and 1 correspond to the animation being completed 0%, 50%, and 100%, respectively.
- Return type
None