SpiralIn#
Qualified name: manim.animation.creation.SpiralIn
- class SpiralIn(mobject=None, *args, use_override=True, **kwargs)[source]#
Bases:
Animation
Create the Mobject with sub-Mobjects flying in on spiral trajectories.
- Parameters
shapes – The Mobject on which to be operated.
scale_factor – The factor used for scaling the effect.
fade_in_fraction – Fractional duration of initial fade-in of sub-Mobjects as they fly inward.
Examples
Example: SpiralInExample ¶
from manim import * class SpiralInExample(Scene): def construct(self): pi = MathTex(r"\pi").scale(7) pi.shift(2.25 * LEFT + 1.5 * UP) circle = Circle(color=GREEN_C, fill_opacity=1).shift(LEFT) square = Square(color=BLUE_D, fill_opacity=1).shift(UP) shapes = VGroup(pi, circle, square) self.play(SpiralIn(shapes))
Methods
Interpolates the mobject of the
Animation
based on alpha value.- 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