🧱 termcinema-engine
Low-level rendering engine for TermCinema —
turn terminal-style text into animated SVG with fine-grained control over fonts, layout, cursor, and animation timing.
Note: This is the rendering core. For end-user usage, see
termcinema-cli
✨ What It Does
termcinema-engine provides programmatic APIs to:
- 🖋 Render multi-line terminal text with typing animations
- 🎨 Style output with custom fonts, colors, alignment, and layout
- 🧑🎨 Animate cursors with blinking and movement trails
- 📜 Support both free-form text and structured REPL/script formats
- 🧩 Export to SVG strings — suitable for embedding in web or docs
🔧 Usage (as a library)
Add to your Cargo.toml:
= "0.1"
Basic usage example:
use ;
Output is a full <svg>...</svg> string — ready to embed or save to file.
📦 Features
- ✅ Minimal dependencies
- ✅ No I/O: pure in → SVG string out
- 🧱 Designed for integration into:
- WASM frontends
- Static site generators
- Code documentation pipelines
- Terminal recording tools
🪄 Advanced Control
Use the structured API for precise layout, animation, and output control:
use ;