Compare commits

..

2 Commits

Author SHA1 Message Date
1f04d875a1 background: missing whitespace 2026-03-15 12:45:36 -05:00
7shades
2a596f7d40 updated pack_old_palette_chunk 2026-03-15 12:43:03 -05:00

View File

@ -53,10 +53,9 @@ def pack_index(character_size, y_flip, x_flip, id):
else: else:
return pack_index_1word(character_size, y_flip, x_flip, id) return pack_index_1word(character_size, y_flip, x_flip, id)
def pack_old_palette_chunk(old_palette_chunk): def pack_old_palette_chunk(f, old_palette_chunk):
with open("palette.bin", "wb") as f: for color in old_palette_chunk.packets[0].colors:
for color in old_palette_chunk.packets[0].colors: f.write(pack_bgr555(*color))
f.write(pack_bgr555(*color))
def pack_palette_chunk(f, palette_chunk): def pack_palette_chunk(f, palette_chunk):
assert palette_chunk.first_color_index_to_change == 0 assert palette_chunk.first_color_index_to_change == 0