From 2a8e05707df9599d99501ee658aa20e4e781dc35 Mon Sep 17 00:00:00 2001 From: "Luke D. Jones" Date: Wed, 11 Aug 2021 16:37:25 +1200 Subject: [PATCH] AniMe: more png colour type support Closes #121, #122 --- CHANGELOG.md | 5 ++ MANUAL.md | 14 ++++- asusctl/src/anime_cli.rs | 2 +- asusctl/src/main.rs | 106 ++++++++++++++++++--------------- daemon-user/src/ctrl_anime.rs | 4 +- daemon-user/src/user_config.rs | 13 +++- rog-anime/src/data.rs | 3 +- rog-anime/src/diagonal.rs | 73 ++++++++++++++++++++--- rog-anime/src/gif.rs | 28 +++++++++ rog-anime/src/image.rs | 77 +++++++++++++++++++++--- rog-anime/src/sequencer.rs | 53 +++++++++++------ 11 files changed, 287 insertions(+), 91 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c607959..18b391d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added +- AniMe: + + Support 8bit RGB, RGBA, 16bit Greyscalw, RGB, RGBA + + add `AsusImage` type for slanted-template pixel-perfect images + + `BREAKING:` plain `Image` with time period is changed and old anime configs break as a result (sorry) # [3.7.2] - 2021-08-02 ### Added diff --git a/MANUAL.md b/MANUAL.md index 6cb9ee94..47cff9c7 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -236,6 +236,18 @@ Each object in the array can be one of: } ``` +##### AsusImage + +Virtually the same as `AsusAnimation` but for png files, typically created in the same "slanted" style using a template (`diagonal-template.png`) as the ASUS gifs for pixel perfection. + +```json + "AsusImage": { + "file": "", + "time":