Code Monkey home page Code Monkey logo

ase-cli-tools's Introduction

ase-cli-tools

A CLI tool written in Rust for batch modification of Aseprite files.

(Yeah, I don't know either. I'm bad at naming things.)

Make sure to use --recursive when cloning so that the submodule is initialized. e.g. git clone --recursive https://github.com/CursedFlames/ase-cli-tools

Base command:

cargo run --release -- <command>

For help:

cargo run --release -- help

Currently only supports palette swapping. Usage:

cargo run --release -- paletteswap <palette file> <input file/dir> <output name>

where palette file is a 2 pixel high Aseprite file with the top row containing source colors, and the bottom row containing destination colors. All cels will be used, regardless of layer or frame. (This is oddly specific, but I'm not sure how to approach making it more generalized.)

This will modify both pixels in the actual images, and colors in the files' palettes. (TODO: make this configurable)

Caveats:

  • Only works on RGBA images, not greyscale or indexed
  • Is alpha sensitive (so pixels with the same color but different alpha won't be updated). I may add an option for alpha insensitivity later.
  • If colors in file palettes have names, these will be retained even if the color is changed.

This program never overwrites/modifies existing files, but you should keep backups of your files anyway just in case something breaks horribly.

ase-cli-tools's People

Contributors

cursedflames avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.