Skip to main content

Animate highlighted blocks of code in Manim

Project description

Manim-Code-Blocks

Manim-Code-Blocks is a library for Manim that allows animating blocks of code in Manim videos and scenes.

Example Usage

from manim import *
from manim_code_blocks import *


class Main(Scene):

    def construct(self):

        java = CodeBlock(
            """
            public class Main {
                public static void main(String[] args) {
                    System.out.println("Hello world");
                }
            }
            """,
            language = Java
        )

        self.play(*java.create())

Outputs:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manim_code_blocks-1.0.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

manim_code_blocks-1.0.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page