diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/romviz.py | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/extras/romviz.py b/extras/romviz.py index f3f733db..e071ecfe 100644 --- a/extras/romviz.py +++ b/extras/romviz.py @@ -20,21 +20,11 @@ analyze_incbins.process_incbins() width = 1024 height = 1024 -im = Image.new("P", (width, height)) - -#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)) - - #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)) +im = Image.new("P", (width, height), 255) + +im.putpalette([ + 0, +]) print "drawing incbins..." for incbin_key in analyze_incbins.processed_incbins: @@ -45,6 +35,6 @@ for incbin_key in analyze_incbins.processed_incbins: 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") |