Skip to content

Creation

Animation Parameters#

Paremeters - as mentioned in Azarzadvillas Documentation - are:

  • Constructor : - self.play() - self.add()

  • Parameters :

  • run_time : The duration of the animation

    • float (ex: 3)
    • Optional
    • Default: DEFAULT_ANIMATION_RUN_TIME

Show Creation#

from manimlib import *

class AnimationShowCreation(Scene):
    def construct(self):

        square = Square()
        self.play(ShowCreation(square))
        self.wait(2)
from manim import *

class AnimationCreate(Scene):
    def construct(self):

        square = Square()
        self.play(Create(square))
        self.wait(2)

Uncreate#

from manimlib import *

class AnimationUncreate(Scene):
    def construct(self):

        square = Square()
        self.add(square)
        self.wait(1)
        self.play(Uncreate(square))
from manim import *

class AnimationUncreate(Scene):
    def construct(self):

        square = Square()
        self.add(square)
        self.wait(1)
        self.play(Uncreate(square))
Back to top