#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

#1901 in Game dev

Download history 33/week @ 2024-09-18 117/week @ 2024-09-25 102/week @ 2024-10-02 145/week @ 2024-10-09 142/week @ 2024-10-16 135/week @ 2024-10-23 145/week @ 2024-10-30 226/week @ 2024-11-06 147/week @ 2024-11-13 139/week @ 2024-11-20 389/week @ 2024-11-27 515/week @ 2024-12-04 317/week @ 2024-12-11 188/week @ 2024-12-18 152/week @ 2024-12-25 200/week @ 2025-01-01

948 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–73MB
~1.5M SLoC