mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
fix palette on romviz.py
hg-commit-id: 104f640e8a98
This commit is contained in:
parent
326ae1c129
commit
0bf1f601c4
|
@ -20,10 +20,11 @@ analyze_incbins.process_incbins()
|
||||||
width = 1024
|
width = 1024
|
||||||
height = 1024
|
height = 1024
|
||||||
|
|
||||||
im = Image.new("P", (width, height), 255)
|
im = Image.new("P", (width, height), 0)
|
||||||
|
|
||||||
im.putpalette([
|
im.putpalette([
|
||||||
0,
|
0, 0, 0,
|
||||||
|
126, 30, 156,
|
||||||
])
|
])
|
||||||
|
|
||||||
print "drawing incbins..."
|
print "drawing incbins..."
|
||||||
|
@ -35,6 +36,6 @@ for incbin_key in analyze_incbins.processed_incbins:
|
||||||
for pos in range(start, end+1):
|
for pos in range(start, end+1):
|
||||||
widthx = pos % width
|
widthx = pos % width
|
||||||
heighty = floor(pos / height)
|
heighty = floor(pos / height)
|
||||||
im.putpixel((widthx, heighty), 0)
|
im.putpixel((widthx, heighty), 1)
|
||||||
|
|
||||||
im.save("test.png")
|
im.save("test.png")
|
||||||
|
|
Loading…
Reference in a new issue