How can I do a check to see if the value of whatever is in (x, x, x) is below for example 5
for i in range(img.size[0]): # for every pixel:
for j in range(img.size[1]):
if pixels[i,j] != (0, 0, 0) and (1, 0, 0) and (0, 1, 0) and (0, 0, 1) and (1, 1, 0) and (0, 1, 1) and (1, 0, 1) and (1, 1, 1) and (1, 1, 2) and (1, 2, 1) and (2, 1, 1) and (2, 2, 1) and (1, 2, 2) and (2, 1, 2) and (2, 2 ,2): # if not black:
pixels[i,j] = (255, 255, 255) # change to white