diff options
author | yenatch <yenatch@gmail.com> | 2013-06-12 12:38:28 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-06-12 14:29:35 -0400 |
commit | 53af4e21e9063c0dc1fcc50cd328715726ca034d (patch) | |
tree | 89a66b694067b8613bc67b8f3045ef4748809724 /vba.py | |
parent | 85aad5c408548bc774eab41b47c42a4ab409df15 (diff) |
gfx: handling for <4-color pngs when converting to 2bpp
without a .pal file as reference, palettes are sorted by luminance.
pokemon crystal reads palettes exactly 4 colors in length.
if an image used fewer than 4 colors, invalid palettes were produced.
instead, dummy colors are inserted to pad out the palette.
original-commit-id: 5cf1754b08aa6903f01b839c917169e6dc8c260f
Diffstat (limited to 'vba.py')
0 files changed, 0 insertions, 0 deletions