Skip to content

Latest commit

 

History

112 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tlottie

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 fitz modifier and color replacements.
  • Support of rendering into only alpha channel bitmap.
  • Safe. Lottie JSON is treated as untrusted input.
  • Zero dependencies.

Building (Native)

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

Building (Web)

./examples/web/build.sh
# .wasm will be copied to examples/web/tlottie.wasm

Example on how to work with tlottie.wasm is at examples/web/.

Benchmarks

Frame time, mainly compared to rlottie2019.

About

Rust library for drawing Lottie animations

Topics

Resources

Stars

27 stars

Watchers

2 watching

Forks

Contributors

Languages