You are viewing a single comment's thread. Return to all comments →
return r % 2 == 0 ? (10*(r/2 - 1) + 1) + (2*c - 2) : 10*((r+1)/2 - 1) + 2*(c-1)
or
return r % 2 == 0 ? 5*r - 11 + 2*c : 5*r - 7 + 2*c
Seems like cookies are disabled on this browser, please enable them to open this website
Strange Grid Again
You are viewing a single comment's thread. Return to all comments →
return r % 2 == 0 ? (10*(r/2 - 1) + 1) + (2*c - 2) : 10*((r+1)/2 - 1) + 2*(c-1)
or
return r % 2 == 0 ? 5*r - 11 + 2*c : 5*r - 7 + 2*c