Ignore the alpha component when revealing a message.

This commit is contained in:
Cédric Bonhomme 2019-05-31 22:21:35 +02:00
parent 3b6be169b2
commit 0e18b2f95a
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D

View file

@ -126,7 +126,7 @@ def reveal(
while True:
generated_number = next(generator)
# color = [r, g, b]
for color in img_list[generated_number][0:3]:
for color in img_list[generated_number][:3]: # ignore the alpha
buff += (color & 1) << (tools.ENCODINGS[encoding] - 1 - count)
count += 1
if count == tools.ENCODINGS[encoding]: