How to Use
Basic Workflow
Section titled “Basic Workflow”- Prepare your source file: Create a script in any language (e.g.,
logic.py,script.js). - Run the tool:
Terminal window ./ctv -i logic.py -o animation.mp4
Advanced Options
Section titled “Advanced Options”Changing the Duration
Section titled “Changing the Duration”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!
Directory Structure
Section titled “Directory Structure”Ensure your project is structured like this for the ctv binary to find the engine:
├── ctv (binary)├── internal/│ └── renderer.py└── venv/ (optional, but recommended)Best Practices
Section titled “Best Practices”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.