Vector Prism
December 17, 2025 · View on GitHub
Official repository for the Vector Prism paper. This project implements the pipeline used in the paper to animate SVGs: SVG input → semantic parsing → LLM/VLM-driven planning → CSS/HTML generation.
Quick start
Install dependencies:
pip install -r requirements.txt
Run the main pipeline (interactive):
python main.py --exp_name myrun --test_json svg/test.jsonl --test_plan_json logs/plans.jsonl
Export per-frame PDFs/PNGs (headless Chrome required):
python utils/export_frames.py --input_file path/to/animation.html --fps 24 --duration 5 --format pdf
Project layout
main.py— pipeline entry point used in experimentssvg_decomposition.py— parser and semantic tagginganimation_planner.py— LLM-based plan generationanimation_generator.py— CSS/HTML generationsvg_composition.py— grouping/restructuring utilitiesutils/— export, metrics, and setup helpers