Plugins
Extend Fluxion with community plugins.
Official Plugins
Fluxion Voiceover
Add AI-generated voiceovers to your animations.
Installation:
bash
pip install fluxion-voiceoverUsage:
python
from fluxion_voiceover import VoiceoverScene
class MyVoiceover(VoiceoverScene):
def construct(self):
with self.voiceover("Welcome to Fluxion!") as tracker:
circle = Circle()
self.play(Create(circle), run_time=tracker.duration)Fluxion Physics
Physics simulations and particle systems.
Installation:
bash
pip install fluxion-physicsUsage:
python
from fluxion_physics import *
class PhysicsDemo(Scene):
def construct(self):
# Create physics world
world = PhysicsWorld()
# Add objects with physics
ball = Circle().add_physics(world, mass=1)
self.add(ball)
# Simulate
self.play(world.simulate(duration=5))Community Plugins
Fluxion Slides
Create presentation slides with Fluxion.
bash
pip install fluxion-slidesFluxion Chemistry
Chemical structures and reactions.
bash
pip install fluxion-chemistryFluxion Music
Musical notation and audio visualization.
bash
pip install fluxion-musicCreating Plugins
Build your own Fluxion plugin:
Plugin Structure
my-fluxion-plugin/
├── fluxion_myplugin/
│ ├── __init__.py
│ ├── mobjects.py
│ ├── animations.py
│ └── scenes.py
├── setup.py
└── README.mdExample Plugin
python
# fluxion_myplugin/__init__.py
from fluxion import *
class CustomMobject(VMobject):
def __init__(self, **kwargs):
super().__init__(**kwargs)
# Your custom mobject code
class CustomAnimation(Animation):
def interpolate_mobject(self, alpha):
# Your custom animation code
passSetup File
python
# setup.py
from setuptools import setup, find_packages
setup(
name="fluxion-myplugin",
version="0.1.0",
packages=find_packages(),
install_requires=[
"fluxion>=0.18.0",
],
)Publishing
- Test your plugin locally
- Create documentation
- Publish to PyPI
- Submit to plugin directory
Plugin Directory
Browse all available plugins at fluxion.community/plugins
