This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This converts RIFF palette files to PNGs, turning the index map | |
# into a 256-colour table that you'd use in UNIB. | |
# As far as I know, this is only useful for if you want to convert | |
# palettes from older Melty Blood games, which have been extracted | |
# and posted to The Spriter's Resource under PS2, but not as PNGs. | |
# This should do the work for you and give you your 36 colours. | |
# Feel free to edit it for other palette formats. Maybe I'll turn | |
# this into a gist, but I don't know what other purposes you'd use it. | |
# Many thanks to the contributors of the wiki here: https://worms2d.info/Palette_file |