if pix3[int(x3 * 2), y3] == 0: IndexError: image index out of range
if pix3[int(x3 * 2), y3] == 0:
IndexError: image index out of range