| Crates.io | quad-gif |
| lib.rs | quad-gif |
| version | 0.4.0 |
| created_at | 2022-06-22 19:14:47.241879+00 |
| updated_at | 2025-05-14 17:44:51.1855+00 |
| description | Display GIF animations with Macroquad. |
| homepage | https://github.com/ollej/quad-gif |
| repository | https://github.com/ollej/quad-gif |
| max_upload_size | |
| id | 611077 |
| size | 641,538 |
Display looping GIF animations with Macroquad.
The animation will loop forever, regardless of how many iterations are set in the file.
Documentation on docs.rs
There is a binary file included that can be used to show a GIF file.
quad-gif 0.3.0
Display a GIF file.
Usage: quad-gif <file>
The library can be used in a Macroquad application to show an animation.
use macroquad::prelude::*;
use quad_gif;
#[macroquad::main("quad-gif")]
async fn main() {
let mut animation = quad_gif::GifAnimation::load("animation.gif".to_string()).await;
clear_background(WHITE);
loop {
animation.draw();
animation.tick();
next_frame().await
}
}
Copyright 2022 Olle Wreede, released under the MIT License.
Animated Ferris in Action by A. L. Palmer
Happy as a Rustacean at Rust Fest Berlin 2016 (www.rustfest.eu)