Looping through a real spiral on a discrete grid?

The goal is to find a closest pixel with a certain value. To do that, I want to loop over the pixel, starting from t...