diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-19 12:27:56 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-19 12:27:56 (GMT) |
commit | a3f62ee68f47686e52128e7f1a1e2278bb287ebc (patch) | |
tree | 625d83d671cf7c39466ab87f0e3a4928dc903e29 /tools | |
parent | 32a368bdbb5dc9ce0de9adb5a1b120b39044dd77 (diff) |
Integrate Walter color values.
(Still not fully hooked up to buddies)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/hex-colors-to-dict | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/hex-colors-to-dict b/tools/hex-colors-to-dict new file mode 100755 index 0000000..5fa3ea7 --- /dev/null +++ b/tools/hex-colors-to-dict @@ -0,0 +1,19 @@ +#!/usr/bin/python + +import sys + +result = 'colors_dict = {\n' +result += '\'white\' : \'black\' , \\\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 += '}' + +hex_file.close() + +print result + |