Hi there, I am wondering if someone could help explain what I’m seeing with my usage of the getPixel command on an image. My image is a 4x1 rgba pixel image that looks like the following (i"ve enlarged it so you can see it):
I’ve put a red colour on the 1st and 3rd pixels, and left the 2nd and 4th pixel as transparent
I have the following code to print out the unsigned pixelValue for each pixel
local activeImage = app.activeImage for x = 0, 3 do print(activeImage:getPixel(x, 0)) end
And this is what it prints out:
My question is why are the two “transparent” pixels reading as different values?