This is a little something I made for personal use and figured I'd polish up and release.
And no, this won't generate you pals. What it does do, however, is this: give it a screenshot from Lunar Magic's palette editor, and it'll generate a .pal file, ready to be imported back into LM or whatever other tool supports the format.
This may or may not be useful for people who - like me - frequently edit palettes in image editors by applying filters and color adjustments to screenshots of the palette editor. Copying the edited colors back into LM is a major pain in the ass, so I wrote this tool to automate it.
To use it, you can either:
Disclaimer: the tool may not always work yet! (That's why I'm not officially uploading it for the time being.) If you get wrong results, please post the image you're using and the .pal file you get! That'd help lots.
I wrote this tool in C++ using the Allegro library (overkill for this task because all I need is "get color at pixel", but I couldn't wrap my head around any of the image manipulation libraries I found). Also thanks to Alcaro for libcon!
That said, have fun with the tool! (And as I mentioned, let me know if something breaks!)
And no, this won't generate you pals. What it does do, however, is this: give it a screenshot from Lunar Magic's palette editor, and it'll generate a .pal file, ready to be imported back into LM or whatever other tool supports the format.
This may or may not be useful for people who - like me - frequently edit palettes in image editors by applying filters and color adjustments to screenshots of the palette editor. Copying the edited colors back into LM is a major pain in the ass, so I wrote this tool to automate it.
To use it, you can either:
- run it from the command line:
PalGenerator.exe <image>
- open the program and provide the image path (or drag-'n'-drop the image on top of the program window when prompted)
- drag-'n'-drop the image on top of the program icon
Disclaimer: the tool may not always work yet! (That's why I'm not officially uploading it for the time being.) If you get wrong results, please post the image you're using and the .pal file you get! That'd help lots.
I wrote this tool in C++ using the Allegro library (overkill for this task because all I need is "get color at pixel", but I couldn't wrap my head around any of the image manipulation libraries I found). Also thanks to Alcaro for libcon!
That said, have fun with the tool! (And as I mentioned, let me know if something breaks!)