10 unstable releases (4 breaking)

0.5.2 Nov 4, 2022
0.5.0 Jul 24, 2022
0.3.0 Mar 17, 2022
0.2.0 Nov 11, 2021

#3 in #lottie

Download history 20/week @ 2023-12-11 20/week @ 2023-12-18 11/week @ 2023-12-25 14/week @ 2024-01-01 22/week @ 2024-01-08 33/week @ 2024-01-15 23/week @ 2024-01-22 46/week @ 2024-01-29 17/week @ 2024-02-05 65/week @ 2024-02-12 22/week @ 2024-02-19 67/week @ 2024-02-26 66/week @ 2024-03-04 45/week @ 2024-03-11 47/week @ 2024-03-18 42/week @ 2024-03-25

208 downloads per month
Used in 6 crates (3 directly)

MIT license

17KB
336 lines

rlottie rlottie on crates.io rlottie docs License: MIT

Safe bindings to rlottie.


lib.rs:

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.4–3.5MB
~56K SLoC