Pat has a single dependancy : typer. Do pip install typer
(or pip install typer[all]
for nicely formatted errors)
Here are the currently supported commands. All commands can either be called on a single file, or a directory, in which case they will be applied to all files inside.
Do pat COMMAND --help
for specifics regarding parameters, options, etc
For splitting a spritesheet into individual files. You have options for specifying cell size or number of rows and columns, and more.
Makes alternates of image (or all images in given directory). Does this by shuffling RGB values, for ex. in one image it swaps the original's R channel and B channel, etc.
Sometimes spritesheets come in separate files but you want to get rid of prefixes like atk_1_
etc. Just do pat rm-prefix PREFIX DIRPATH
Same as above but for suffixes
For removing a single-color background.
For removing shadows. Here shadow means a pixel that only borders transparent or shadow pixels (not diagonally).