01-14-2023, 02:43 PM
Anyhoo, the palette indexing is actually pretty straightforward. Rotate the palette images to the right by 90°, then just apply the palette with the usual left-to-right colourization to replace the corresponding greyscale shades. Instead of starting from 0 you'll want to start from 1 (so the first actual palette shade is on 2, in other words), 0 is always treated as transparency regardless of the fact that there's already a transparent colour on the palettes.