Library for drawing lottie animations, written in Rust.
- Micro-optimized and benchmarked across 17k+ animations from Telegram, against rlottie and thorvg.
- SIMD on ARM NEON, x86_64 SSE2 AVX2 AVX512, and WASM: web demo.
- Support of
fitzmodifier and color replacements. - Support of rendering into only alpha channel bitmap.
- Safe. Lottie JSON is treated as untrusted input.
- Zero dependencies.
cargo rustc --release --features c-api --lib --crate-type staticlib
# library will be built at target/release/libtlottie.a
# include headers are at include/tlottie.h./examples/web/build.sh
# .wasm will be copied to examples/web/tlottie.wasmExample on how to work with tlottie.wasm is at examples/web/.
Frame time, mainly compared to rlottie2019.
- android arm, Samsung Fold7: -64.7% at 64px, -55.8% at 320px, -52.0% at 720px
- android arm, Samsung F15: -62.7% at 64px, -42.0% at 320px, -23.0% at 720px
- macOS arm: -61.5% at 64px, -47.6% at 320px, -27.3% at 720px
- linux x86: -70.0% at 64px, -50.2% at 320px, -36.4% at 720px