as a metaphor
The equivalent statement to "get(x, y)" using pixels[] is "pixels[y*width+x]".
I want it the other way round: When I have "a" being a continous number for all cells (up to 100 in a 10x10 grid):
What is x and y derived from "a"?
a would be a = y*width+x
1