Bring around both colors, since multiple combinations can have

the same base color.
This commit is contained in:
Marco Pesenti Gritti
2006-09-08 15:09:10 +02:00
parent 2a2554f157
commit 233051875b
5 changed files with 593 additions and 587 deletions
+3 -4
View File
@@ -2,16 +2,15 @@
import sys
result = 'table = {\n'
result += '\'white\' : \'black\' , \\\n'
result = 'colors = [\n'
hex_file = open(sys.argv[1], 'r')
for line in hex_file.readlines():
[ stroke, fill ] = line.split()
result += '\'#%s\' : \'#%s\', \\\n' % (fill, stroke)
result += '[\'#%s\', \'#%s\'], \\\n' % (fill, stroke)
result += '}'
result += ']'
hex_file.close()