@glv Thanks ever so. I am trying to understand.
What is (int)?
I would love to know what is going on in the Python line:
lum_img.pixels[i] = (col & 0xff000000) | (lum << 16) | (lum << 8) | lum
I understand bit shifting is faster, but I like to develop in a plonky clear way and then make the code efficient at the end. I plan to add in some other features such as turning the image into a photographic negative, white point, etc.