ref: 326ae1c1293f80f2cf16ef4ae2ae2c327cf987a6
parent: 3a5864fb1317c5ecb830aa8c046c2a4e4231fa7d
author: Bryan Bishop <[email protected]>
date: Fri Jan 20 05:39:54 EST 2012
i'm really bad at colors hg-commit-id: 9a74eed9b5b2
--- a/extras/romviz.py
+++ b/extras/romviz.py
@@ -20,22 +20,12 @@
width = 1024
height = 1024
-im = Image.new("P", (width, height))
+im = Image.new("P", (width, height), 255)
-#print "drawing base color..."
-#for pos in range(0, len(extract_maps.rom)):
-# widthx = pos % width
-# heighty = floor(pos / height)
-# #im.putpixel((widthx, heighty), color_table[ord(extract_maps.rom[pos])])
-# im.putpixel((widthx, heighty), (0, 0, 0))
+im.putpalette([
+ 0,
+])
- #print "Searching for incbin... for pos= " + hex(pos)
- #incbin_found = analyze_incbins.find_incbin_to_replace_for(pos)
- #if incbin_found == None:
- # im.putpixel((widthx, heighty), (0, 0, 0))
- #else:
- # im.putpixel((widthx, heighty), (255, 255, 255))
-
print "drawing incbins..."
for incbin_key in analyze_incbins.processed_incbins:
incbin = analyze_incbins.processed_incbins[incbin_key]
@@ -45,6 +35,6 @@
for pos in range(start, end+1):
widthx = pos % width
heighty = floor(pos / height)
- im.putpixel((widthx, heighty), 255)
+ im.putpixel((widthx, heighty), 0)
im.save("test.png")