PaletteOptimiser

Change of optimiser.py

7:18ebf1c73555
optimiser.py
     1.1 --- a/optimiser.py	Tue Sep 08 22:09:13 2015 +0200
     1.2 +++ b/optimiser.py	Tue Sep 08 22:26:12 2015 +0200
     1.3 @@ -54,30 +54,6 @@
     1.4  
     1.5  colours = ["_", "R", "G", "Y", "B", "M", "C", "W"]
     1.6  
     1.7 -upward = {
     1.8 -    "_" : ["R", "G", "B"],
     1.9 -    "R" : ["Y", "M"],
    1.10 -    "G" : ["Y", "C"],
    1.11 -    "B" : ["C", "M"],
    1.12 -    "Y" : ["W"],
    1.13 -    "C" : ["W"],
    1.14 -    "M" : ["W"],
    1.15 -    "W" : ["W"],
    1.16 -    "*" : ["W", "Y", "C", "M"],
    1.17 -    }
    1.18 -
    1.19 -downward = {
    1.20 -    "_" : ["_"],
    1.21 -    "R" : ["_"],
    1.22 -    "G" : ["_"],
    1.23 -    "B" : ["_"],
    1.24 -    "Y" : ["R", "G"],
    1.25 -    "C" : ["G", "B"],
    1.26 -    "M" : ["R", "B"],
    1.27 -    "W" : ["Y", "C", "M"],
    1.28 -    "*" : ["R", "G", "B", "_"],
    1.29 -    }
    1.30 -
    1.31  if __name__ == "__main__":
    1.32      width = 320
    1.33      input_filename, output_filename = sys.argv[1:3]