- class SpinInFromNothing(mobject=None, *args, use_override=True, **kwargs)[source]#
Mobjectspinning and growing it from its center.
mobject – The mobjects to be introduced.
angle – The amount of spinning before mobject reaches its full size. E.g. 2*PI means that the object will do one full spin before being fully introduced.
point_color – Initial color of the mobject before growing to its full size. Leave empty to match mobject’s color.
Example: SpinInFromNothingExample ¶
from manim import * class SpinInFromNothingExample(Scene): def construct(self): squares = [Square() for _ in range(3)] VGroup(*squares).set_x(0).arrange(buff=2) self.play(SpinInFromNothing(squares)) self.play(SpinInFromNothing(squares, angle=2 * PI)) self.play(SpinInFromNothing(squares, point_color=RED))