12 unstable releases (3 breaking)

Uses new Rust 2024

new 0.4.1 Apr 30, 2025
0.4.0 Apr 29, 2025
0.3.1 Nov 30, 2024
0.2.0 Jul 4, 2024
0.1.1 May 24, 2024

#1799 in Game dev

Download history 149/week @ 2025-01-08 116/week @ 2025-01-15 131/week @ 2025-01-22 136/week @ 2025-01-29 102/week @ 2025-02-05 140/week @ 2025-02-12 159/week @ 2025-02-19 141/week @ 2025-02-26 162/week @ 2025-03-05 168/week @ 2025-03-12 178/week @ 2025-03-19 131/week @ 2025-03-26 215/week @ 2025-04-02 42/week @ 2025-04-09 54/week @ 2025-04-16 41/week @ 2025-04-23

367 downloads per month

MIT/Apache

1.5MB
270 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.16 0.4
0.15 0.3
0.14 0.2
0.13 0.1

Dependencies

~38–70MB
~1M SLoC