12 releases
Uses new Rust 2024
| new 0.5.4 | Mar 7, 2026 |
|---|---|
| 0.5.2 | Nov 4, 2022 |
| 0.5.0 | Jul 24, 2022 |
| 0.3.0 | Mar 17, 2022 |
| 0.2.0 | Nov 11, 2021 |
#391 in Graphics APIs
108 downloads per month
Used in 10 crates
(6 directly)
25KB
473 lines
rlottie

Safe Rust bindings to rlottie.
Example
use rlottie::{Animation, Surface};
let mut animation = Animation::from_file(path_to_lottie_json)?;
let size = animation.size();
let mut surface = Surface::new(size);
for frame in 0 .. animation.totalframe() {
animation.render(frame, &mut surface);
for (x, y, color) in surface.pixels() {
println!("frame {frame} at ({x}, {y}): {color:?}");
}
}
Dependencies
~0.3–2.6MB
~52K SLoC