Wing900/ManimCat
EN: ManimCat: AI-generated math animations from natural language. High-quality Manim rendering with LaTeX support and auto-code fixing. 中: ManimCat:AI 数学动画生成器。支持描述即视频,内置 LaTeX 与代码纠错,让数学动效触手可及。
What it solves
ManimCat is an AI-assisted creation system designed to generate mathematical visuals for teaching, classroom explanations, and visual reasoning. It removes the need for users to manually write complex Manim or matplotlib code by allowing them to use natural language to create, modify, and organize both animated videos and static images.
How it works
The system operates through two primary modes and two rendering engines:
- Workflow Mode: A direct, one-shot generation path for fast outputs. It uses a two-stage AI process where a concept designer creates a scene design and a code generator writes the actual code.
- Agent Mode: A collaborative, session-based workspace (Studio) where users can iterate on visuals with a team of AI roles (Builder, Designer, and Reviewer) using a long-lived state model.
- Engines: It utilizes Manim for timeline-based animations and matplotlib for static charts and figures.
To ensure quality, it includes a static analysis guard (using py_compile and mypy) and an AI-driven auto-patching loop that regenerates code if rendering fails.
Who it’s for
It is primarily intended for educators, math teachers, and content creators who need high-quality mathematical animations and figures but may not be proficient in Python programming.
Highlights
- Dual-Engine Support: Seamlessly switches between Manim for animations and matplotlib for static visuals.
- AI-Powered Error Correction: Automatically detects render failures and feeds errors back to the AI to patch and regenerate code.
- Collaborative Studio: An agentic workspace with dedicated roles for design and review, supporting iterative refinement.
- Multi-Output Generation: Supports both video and image outputs, including segmented rendering for multiple images.
- Integrated Tooling: Includes background music mixing for videos and a prompt template manager for system prompt overrides.