Coder Social home page Coder Social logo

namuan / code-video-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sleuth-io/code-video-generator

0.0 1.0 0.0 5.7 MB

Generates code walkthrough videos using Manim

License: Apache License 2.0

Shell 2.60% Python 91.82% Makefile 4.46% Dockerfile 1.12%

code-video-generator's Introduction

Introduction video

GitHub Actions PyPI PyPI

Code Video Generator is a library that uses the Manim animation engine to automatically generate code walkthrough videos. In fact, the source for the video above is at examples/intro.py.

Documentation

The documention is hosted at Read the Docs

Installation

Code Video Generator needs Manim and a few other dependencies. Please visit the documentation.

Usage

Here is an example video script that creates a video of itself:

from code_video import CodeScene


class MyScene(CodeScene):
    def construct(self):
        # This does the actual code display and animation
        self.animate_code_comments("simple.py")
    
        # Wait 5 seconds before finishing
        self.wait(5)

Save this code in a file called simple.py. Now open your terminal in the folder where you saved the file and execute

manim video.py -ql -p

You should see your video player pop up and play a simple walkthrough of video.py. You can find some more simple examples in the GitHub repository.

For more information on Manim, see their ReadTheDocs.

Contributing

If you'd like to contribute, feel free to fork or better yet, submit improvements as pull requests or report issues.

License

The software is licensed under the Apache Public License v2, with copyright by Sleuth Enterprises.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.