#gif #animation #bevy

vleue_kinetoscope

Animated GIF player for Bevy

7 releases

0.3.0-rc.1 Nov 10, 2024
0.2.0 Jul 4, 2024
0.2.0-rc.4 Jun 29, 2024
0.1.1 May 24, 2024

#2224 in Game dev

Download history 121/week @ 2024-07-29 103/week @ 2024-08-05 109/week @ 2024-08-12 104/week @ 2024-08-19 112/week @ 2024-08-26 62/week @ 2024-09-02 41/week @ 2024-09-09 66/week @ 2024-09-16 93/week @ 2024-09-23 90/week @ 2024-09-30 146/week @ 2024-10-07 150/week @ 2024-10-14 128/week @ 2024-10-21 158/week @ 2024-10-28 126/week @ 2024-11-04 245/week @ 2024-11-11

675 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

~39–72MB
~1.5M SLoC