Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 1.09 KB

README.md

File metadata and controls

30 lines (16 loc) · 1.09 KB

pat

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

split

For splitting a spritesheet into individual files. You have options for specifying cell size or number of rows and columns, and more.

colalts

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.

rm-prefix

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

rm-suffix

Same as above but for suffixes

rm-bg

For removing a single-color background.

rm-shadow

For removing shadows. Here shadow means a pixel that only borders transparent or shadow pixels (not diagonally).