ref: 0bf1f601c4c4adf44160ea5d425afbecec407895
parent: 326ae1c1293f80f2cf16ef4ae2ae2c327cf987a6
author: Bryan Bishop <kanzure@gmail.com>
date: Fri Jan 20 06:01:58 EST 2012
fix palette on romviz.py hg-commit-id: 104f640e8a98
--- a/extras/romviz.py
+++ b/extras/romviz.py
@@ -20,10 +20,11 @@
width = 1024
height = 1024
-im = Image.new("P", (width, height), 255)
+im = Image.new("P", (width, height), 0)
im.putpalette([
- 0,
+ 0, 0, 0,
+ 126, 30, 156,
])
print "drawing incbins..."
@@ -35,6 +36,6 @@
for pos in range(start, end+1):
widthx = pos % width
heighty = floor(pos / height)
- im.putpixel((widthx, heighty), 0)
+ im.putpixel((widthx, heighty), 1)
im.save("test.png")