This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start_pixel = get_num_rand(used_pixels, num_of_pixels) | |
while byte_written != len(input_data): | |
bit_i = 0 | |
while bit_i != 8: | |
px = matrix[start_pixel] | |
# colors: Red, Green and Blue | |
for c in range(conf[0], conf[1]): | |
if bit_i == 8: | |
break | |
# Because of Least Significant Bit, we want to modify the last bit of every color |
NewerOlder