#gif #animation #bevy

vleue_kinetoscope

Animated GIF player for Bevy

9 releases

0.3.1 Nov 30, 2024
0.3.0 Nov 30, 2024
0.2.0 Jul 4, 2024
0.2.0-rc.4 Jun 29, 2024
0.1.1 May 24, 2024

#2192 in Game dev

Download history 142/week @ 2024-10-18 133/week @ 2024-10-25 139/week @ 2024-11-01 237/week @ 2024-11-08 139/week @ 2024-11-15 137/week @ 2024-11-22 524/week @ 2024-11-29 494/week @ 2024-12-06 225/week @ 2024-12-13 180/week @ 2024-12-20 158/week @ 2024-12-27 187/week @ 2025-01-03 126/week @ 2025-01-10 127/week @ 2025-01-17 140/week @ 2025-01-24 120/week @ 2025-01-31

536 downloads per month

MIT/Apache

1.5MB
252 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 component AnimatedImageController:

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

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
    commands.spawn(AnimatedImageController::play(asset_server.load("cube.gif")));
}

Play an animated WebP

Spawn an entity with the component AnimatedImageController:

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

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
    commands.spawn(AnimatedImageController::play(asset_server.load("cube.webp")));
}

Bevy Support

Bevy vleue_kinetoscope
main main
0.15 0.3
0.14 0.2
0.13 0.1

Dependencies

~42–74MB
~1.5M SLoC