diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-01-20 10:39:54 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-01-20 10:39:54 -0600 |
commit | 326ae1c1293f80f2cf16ef4ae2ae2c327cf987a6 (patch) | |
tree | 1ed90c26409939e3eee8df4415d71ec8bb4adb6b /extras | |
parent | 3a5864fb1317c5ecb830aa8c046c2a4e4231fa7d (diff) |
i'm really bad at colors
hg-commit-id: 9a74eed9b5b2
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") |