Context
My goal is to make a LOT 64x64 textures for a game I wanna try making, or at least see if it's somewhat viable. Most of them would consist of a simple pattern between two colors, from a total palette of 16 colors. However, should the permutation formula still hold up, that would mean about 240 textures per pattern. And if all done manually... well, it'd be way too long for what should be a simple, repeating texture.
(The reason I use permutation rather than combination is that a black-white texture could be vastly different from a white-black texture.)
Problem
There's a lot of textures I gotta make, but given their simplicity, it'd be inefficient to do it all by hand. Not impossible, just extremely tedious. I'd like to be able to find a way to automatically generate all those textures, given one single template texture and a subset of a palette.My Ideal Pipeline
- Doodle a pattern I wanna generate flats out of, monochrome black and white. Simple dithering pattern, complex tiling, any 1-bit texture.
- Open up the script, and pick the template file from wherever I exported it to.
- Pick the pallete I want to use in the same screen, given either a preset or a gpl file. (The ability to remember what I used last time would also be nice)
- Pick sixteen specific colors from whatever palette I'm using, ideally from a 256-color palette. Ideally, any arbitrary number of colors could work, so long as it works with the 1-bit templates I use.
- Specify a directory to put all those generated files in, and/or have a seperate button to run the script itself.
- 240 textures, all ready to be put into SLADE3 and converted into usable flats!