1.1 --- a/optimiser.py Tue Sep 08 19:57:35 2015 +0200
1.2 +++ b/optimiser.py Tue Sep 08 21:29:00 2015 +0200
1.3 @@ -35,12 +35,6 @@
1.4 def match_darker(b, bases):
1.5 return downward[b] in bases and downward[b]
1.6
1.7 -def match_tone(t, bases):
1.8 - return match(t[1], bases)
1.9 -
1.10 -def match_variant(t, bases, fn):
1.11 - return fn(t[0], bases)
1.12 -
1.13 def neutral(bases, light):
1.14 l = ["W", "C", "Y", "M", "G", "R", "B", "_"]
1.15 if not light:
1.16 @@ -154,7 +148,7 @@
1.17 best, bases, tone_map, missing = ch
1.18 base = tone_map.get(t) or neutral(bases, light)
1.19 o.append(base)
1.20 - i = colours.index(base or "_")
1.21 + i = colours.index(base)
1.22 im.putpixel((column, row), colour(i))
1.23
1.24 output.append("".join(o))