Support Fluxion Engine
If you find this project useful, please consider supporting its development.
Support ProjectComplete API documentation for Fluxion.
The base class for all animations.
class Scene:
def construct(self):
"""Override this method with your animation code"""
pass
def play(*animations, **kwargs):
"""Play one or more animations"""
pass
def wait(duration=1):
"""Wait for specified duration"""
pass
def add(*mobjects):
"""Add mobjects to the scene"""
pass
def remove(*mobjects):
"""Remove mobjects from the scene"""
passBase class for all mathematical objects.
class Mobject:
def shift(vector):
"""Move mobject by vector"""
pass
def move_to(point):
"""Move mobject to point"""
pass
def scale(factor):
"""Scale mobject by factor"""
pass
def rotate(angle, axis=OUT):
"""Rotate mobject"""
pass
def set_color(color):
"""Set mobject color"""
passCircle(radius=1.0, color=WHITE, **kwargs)Square(side_length=2.0, color=WHITE, **kwargs)Rectangle(width=4.0, height=2.0, **kwargs)Triangle(**kwargs)Line(start=LEFT, end=RIGHT, **kwargs)Arrow(start=ORIGIN, end=RIGHT, **kwargs)Text(text, font="Arial", font_size=48, **kwargs)MathTex(tex_string, **kwargs)Create(mobject, **kwargs)FadeIn(mobject, **kwargs)
FadeOut(mobject, **kwargs)Transform(mobject, target_mobject, **kwargs)Write(text_mobject, **kwargs)Rotate(mobject, angle, **kwargs)UP = np.array([0, 1, 0])
DOWN = np.array([0, -1, 0])
LEFT = np.array([-1, 0, 0])
RIGHT = np.array([1, 0, 0])
ORIGIN = np.array([0, 0, 0])WHITE = "#FFFFFF"
BLACK = "#000000"
RED = "#FF0000"
GREEN = "#00FF00"
BLUE = "#0000FF"
YELLOW = "#FFFF00"
PINK = "#FF69B4"config.quality = "high"
config.preview = True
config.background_color = BLACK
config.frame_rate = 60For complete API documentation, see the source code.
If you find this project useful, please consider supporting its development.
Support Project