#gif #animation #bevy

vleue_kinetoscope

Animated GIF player for Bevy

4 releases

new 0.2.0-rc.3 Jun 22, 2024
0.2.0-rc.2 Jun 8, 2024
0.1.1 May 24, 2024
0.1.0 May 24, 2024

#2123 in Game dev

Download history 256/week @ 2024-05-20 105/week @ 2024-05-27 136/week @ 2024-06-03 82/week @ 2024-06-10 106/week @ 2024-06-17

444 downloads per month

MIT/Apache

1.5MB
253 lines

vleue_kinetoscope

MIT/Apache 2.0 Doc Crate Bevy Tracking CI

Animated GIF and WebP player for Bevy.

animated-gif

Usage

System setup

Add the plugin to your app:

use bevy::prelude::*;
use vleue_kinetoscope::AnimatedImagePlugin;

fn main() {
    App::new()
        // Usually included with `DefaultPlugins`
        .add_plugins(AssetPlugin::default())
        .add_plugins(AnimatedImagePlugin);
}

Play an animated gif

Spawn an entity with the bundle AnimatedImageBundle

use bevy::prelude::*;
use vleue_kinetoscope::*;

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
    commands.spawn(AnimatedImageBundle {
        animated_image: asset_server.load("Geneva_mechanism_6spoke_animation.gif"),
        ..default()
    });
}

Bevy Support

Bevy vleue_kinetoscope
main main
0.14 0.2
0.13 0.1

Dependencies

~43–80MB
~1M SLoC