Fixed two minor bugs

This commit is contained in:
Niles Rogoff 2016-07-21 09:45:54 -07:00
parent eca976891f
commit c4b2808ef4
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ if use_non_random_dither:
counter_max = int(args[args.index("--non-random-dither") + 1])
if not dither:
dither = auto_dither(bits)
print("Non-random dither has no effect if dither is disabled. Guessing you want "+format_dither(dither)+"% dither")
print("Non-random dither has no effect if dither is disabled. Guessing you want "+format_dither(dither)+" dither")
def binprecision(start, bits, length):
end = bin(int(start))[2:]
while len(end) < bits:

View File

@ -41,6 +41,7 @@ for f in files:
for dither in [False, "15", "50", "auto"]:
for nonrandom in [False, "7", "10"]:
for percolor in [False, True]:
if nonrandom and not dither: continue
i += 1
run(bits, percolor, dither, nonrandom)
print(str(int(float(1000*i)/max_i)/10) + "% done")