Skip to content

Instantly share code, notes, and snippets.

@klaxa
Created July 19, 2014 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaxa/4d84b9b0f952b46c1525 to your computer and use it in GitHub Desktop.
Save klaxa/4d84b9b0f952b46c1525 to your computer and use it in GitHub Desktop.
[klaxa@localhost Development]$ cat cassy_tiles.c
#include <stdio.h>
int main() {
for(int x = 0; x < 800; x+=256) { for (int y = 0; y < 480; y+=256) { printf("%dx%d\n", x, y); } }
}
[klaxa@localhost Development]$ gcc cassy_tiles.c -std=c99 -o cassy_tiles
[klaxa@localhost Development]$ ./cassy_tiles
0x0
0x256
256x0
256x256
512x0
512x256
768x0
768x256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment