Zum Inhalt springen
Skillpedia
Allgemeines Programmieren75k · #2674

manimgl-best-practices

Was er macht

Dieser Skill hilft Entwicklern, ManimGL-Animationscode zu schreiben, die OpenGL-Version von Manim. Er ist für Programmierer gedacht, die in Python interaktive, hochwertige Mathematikanimationen wollen.

Wann du ihn nutzt

  • ✓Wenn du Code mit der Bibliothek ManimGL schreibst.
  • ✓Wenn du die interaktiven Szenenwerkzeuge in ManimGL nutzen willst.
  • ✓Wenn du Mathematik, 3D-Objekte oder Kamerafahrten mit ManimGL animieren musst.

Link zum Skill

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/manimgl-best-practices/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/manimgl-best-practices/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Schreibe eine ManimGL-Szene mit einer interaktiven Kamera, die um eine 3D-Fläche kreist.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill bietet Regeln und Beispiele für interaktive Szenen, Formen, Animationen, LaTeX-Text, Farben, Gestaltung und Kamerasteuerung, damit dein Agent ManimGL-Code schreiben kann.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

How to use

Read individual rule files for detailed explanations and code examples:

Core Concepts

Creation & Transformation

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

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

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:

Scene Templates

Copy and modify these templates to start new projects:

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
Häufige Fragen

Wie unterscheidet sich ManimGL von Manim Community?

ManimGL ist die OpenGL-Version, die 3Blue1Brown nutzt, und hat interaktive Entwicklungsfunktionen.

Deckt er 3D-Kamerafahrten ab?

Ja. Er behandelt 3D-Objekte und Kamerasteuerung, einschließlich Euler-Winkel.

Deckt er Text und Mathematik ab?

Ja. Er behandelt LaTeX mit Tex, einfachen Text und Einfärbung mit einer Farbkarte.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
75k
Platz im Ranking
#2674
Lizenz
AGPL-3.0
Aktualisiert
28.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills