anime: discard frames if specified

This commit is contained in:
Luke D Jones
2021-04-06 22:03:06 +12:00
parent 47c1ca9fe4
commit 9b4ed6eb62
2 changed files with 39 additions and 14 deletions

View File

@@ -55,11 +55,13 @@ impl AniMeSequence {
Ok(Self::Image(Box::new(data)))
}
pub fn png_gif(file: &Path,
pub fn png_gif(
file: &Path,
// scale: Vec2,
// angle: f32,
// translation: Vec2,
brightness: f32,) -> Result<Self, AnimeError> {
brightness: f32,
) -> Result<Self, AnimeError> {
let frames = AniMeGif::create_png_gif(file, brightness)?;
Ok(Self::Animation(frames))
}