mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 15:08:23 +00:00
i'm really bad at colors
hg-commit-id: 9a74eed9b5b2
This commit is contained in:
parent
3a5864fb13
commit
326ae1c129
1 changed files with 5 additions and 15 deletions
|
@ -20,21 +20,11 @@ analyze_incbins.process_incbins()
|
|||
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))
|
||||
|
||||
#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.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")
|
||||
|
|
Loading…
Reference in a new issue