manimgl-best-practices
यह क्या करती है
यह स्किल ManimGL एनिमेशन कोड लिखने में डेवलपर की मदद करती है, जो Manim का OpenGL वाला संस्करण है। यह उन प्रोग्रामर के लिए है जो Python में इंटरैक्टिव और उच्च गुणवत्ता वाले गणित एनिमेशन चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप ManimGL लाइब्रेरी के साथ कोड लिख रहे हों।
- ✓जब आप ManimGL के इंटरैक्टिव सीन टूल इस्तेमाल करना चाहते हैं।
- ✓जब आपको ManimGL में गणित, 3D ऑब्जेक्ट या कैमरा मूव एनिमेट करने हों।
Skill का लिंक
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/manimgl-best-practices/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“एक ManimGL सीन लिखें जिसमें इंटरैक्टिव कैमरा 3D सतह के चारों ओर घूमे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल इंटरैक्टिव सीन, आकार, एनिमेशन, LaTeX टेक्स्ट, रंग, स्टाइलिंग और कैमरा नियंत्रण के लिए नियम और उदाहरण देती है, ताकि आपका एजेंट ManimGL कोड लिख सके।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
How to use
Read individual rule files for detailed explanations and code examples:
Core Concepts
- rules/scenes.md - InteractiveScene, Scene types, and construct method
- rules/mobjects.md - Mobject types, VMobject, Groups, and positioning
- rules/animations.md - Animation classes, playing animations, and timing
Creation & Transformation
- rules/creation-animations.md - ShowCreation, Write, FadeIn, DrawBorderThenFill
- rules/transform-animations.md - Transform, ReplacementTransform, TransformMatchingTex
- rules/animation-groups.md - LaggedStart, Succession, AnimationGroup
Text & Math
- rules/tex.md - Tex class, raw strings R"...", and LaTeX rendering
- rules/text.md - Text mobjects, fonts, and styling
- rules/t2c.md - tex_to_color_map (t2c) for coloring math expressions
Styling & Appearance
- rules/colors.md - Color constants, gradients, RGB, hex, GLSL coloring
- rules/styling.md - Fill, stroke, opacity, backstroke, gloss, shadow
3D & Camera
- rules/3d.md - 3D objects, surfaces, Sphere, Torus, parametric surfaces, lighting
- rules/camera.md - frame.reorient(), Euler angles, fix_in_frame(), camera animations
Interactive Development
- rules/interactive.md - Interactive mode with
-seflag, checkpoint_paste() - rules/frame.md - self.frame, camera control, reorient, and zooming
- rules/embedding.md - self.embed() for IPython debugging, touch() mode
Configuration & CLI
- rules/cli.md - manimgl command, flags (-w, -o, -se, -l, -h), rendering options
- rules/config.md - custom_config.yml, directories, camera settings, quality presets
Working Examples
Complete, tested example files demonstrating common patterns:
- examples/basic_animations.py - Basic shapes, text, and animations
- examples/math_visualization.py - LaTeX equations and mathematical content
- examples/graph_plotting.py - Axes, functions, and graphing
- examples/3d_visualization.py - 3D scenes with camera control and surfaces
- examples/updater_patterns.py - Dynamic animations with updaters
Scene Templates
Copy and modify these templates to start new projects:
- templates/basic_scene.py - Standard 2D scene template
- templates/interactive_scene.py - InteractiveScene with self.embed()
- templates/3d_scene.py - 3D scene with frame.reorient()
- templates/math_scene.py - Mathematical derivations and equations
Quick Reference
Basic Scene Structure
from manimlib import *
class MyScene(InteractiveScene):
def construct(self):
# Create mobjects
circle = Circle()
# Add to scene (static)
self.add(circle)
# Or animate
self.play(ShowCreation(circle)) # Note: ShowCreation, not Create
# Wait
self.wait(1)
Render Command
# Render and preview
manimgl scene.py MyScene
# Interactive mode - drop into shell at line 15
manimgl scene.py MyScene -se 15
# Write to file
manimgl scene.py MyScene -w
# Low quality for testing
manimgl scene.py MyScene -l
Key Differences from ManimCE
| Feature | ManimGL (3b1b) | Manim Community |
|---|---|---|
| Import | from manimlib import * |
from manim import * |
| CLI | manimgl |
manim |
| Math text | Tex(R"\pi") |
MathTex(r"\pi") |
| Scene | InteractiveScene |
Scene |
| Create anim | ShowCreation |
Create |
| Camera | self.frame |
self.camera.frame |
| Fix in frame | mob.fix_in_frame() |
self.add_fixed_in_frame_mobjects(mob) |
| Package | manimgl (PyPI) |
manim (PyPI) |
Interactive Development Workflow
ManimGL's killer feature is interactive development:
# Start at line 20 with state preserved
manimgl scene.py MyScene -se 20
In interactive mode:
# Copy code to clipboard, then run:
checkpoint_paste() # Run with animations
checkpoint_paste(skip
अक्सर पूछे जाने वाले सवाल
ManimGL, Manim Community से कैसे अलग है?
ManimGL OpenGL वाला संस्करण है जिसे 3Blue1Brown इस्तेमाल करते हैं, और इसमें इंटरैक्टिव डेवलपमेंट की सुविधाएँ हैं।
क्या यह 3D कैमरा मूव कवर करता है?
हाँ। यह 3D ऑब्जेक्ट और कैमरा नियंत्रण कवर करता है, जिसमें Euler कोण भी शामिल हैं।
क्या इसमें टेक्स्ट और गणित है?
हाँ। इसमें Tex के साथ LaTeX, सादा टेक्स्ट, और color map से रंग देना शामिल है।
जानकारी
लेखक का मूल विवरण
Trigger when: (1) User mentions "manimgl" or "ManimGL" or "3b1b manim", (2) Code contains `from manimlib import *`, (3) User runs `manimgl` CLI commands, (4) Working with InteractiveScene, self.frame, self.embed(), ShowCreation(), or ManimGL-specific patterns. Best practices for ManimGL (Grant Sanderson's 3Blue1Brown version) - OpenGL-based animation engine with interactive development. Covers InteractiveScene, Tex with t2c, camera frame control, interactive mode (-se flag), 3D rendering, and checkpoint_paste() workflow. NOT for Manim Community Edition (which uses `manim` imports and `manim` C
repo: calesthio/OpenMontage
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2674
- लाइसेंस
- AGPL-3.0
- अपडेट की गई
- 28/10/2026
कमेंट
- …
इस repository की और skills
3d-asset-generation
75kकैटलॉग, टेक्स्ट या इमेज से 3D टूल और अंतिम जोड़ के लिए Blender का उपयोग करके दृश्य के लिए 3D वस्तुएँ बनाने का तरीका चुनने में मदद करती है।
acestep
75kखुले ACE-Step संगीत जनरेटर से वीडियो के लिए बैकग्राउंड संगीत, गाने, जिंगल और stems बनाने में मदद करती है।
agents
75kElevenLabs से वॉइस AI सहायक बनाने में मदद करती है, जैसे ग्राहक सेवा बॉट और इंटरएक्टिव आवाज़ वाले पात्र।
ai-video-gen
75kटेक्स्ट विवरण या संदर्भ इमेज से AI वीडियो क्लिप बनाने में मदद करती है, कई वीडियो जनरेशन सेवाओं में से चुनकर।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।