Skip to content

How to Use

  1. Prepare your source file: Create a script in any language (e.g., logic.py, script.js).
  2. Run the tool:
    Terminal window
    ./ctv -i logic.py -o animation.mp4

Currently, the duration is set to 5 seconds by default in internal/renderer.py. To change this, you can edit the generate_video function call or stay tuned for a CLI flag update!

Ensure your project is structured like this for the ctv binary to find the engine:

Terminal window
├── ctv (binary)
├── internal/
└── renderer.py
└── venv/ (optional, but recommended)

Code Length: Keep your snippets under 30 lines. Too much code will make the font small and hard to read in a video format.

Backgrounds: If you want a different look, you can change the bg_colour in internal/renderer.py using RGB values.