Fixed two minor bugs
This commit is contained in:
parent
eca976891f
commit
c4b2808ef4
2
2bit.py
2
2bit.py
|
@ -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:
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue