I have this code for finding coordinates for each pixel in an image. I add 1 to y if a column is finished and 1 to x if a row has finished. The
y
x