Created
September 19, 2012 07:17
-
-
Save williame/3748144 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size=[14,48,25,33] | |
tilesize=2048 | |
map_size=[(size[1]+size[3])*tilesize,(size[0]+size[2])*tilesize] | |
print '<html><head><title>',",".join("%s"%i for i in map_size),'</title></head><body><table cellspacing="0" cellpadding="0">' | |
for ns in "ns": | |
for y in range(48): | |
print "<tr>" | |
for x in range(25): | |
for ew in "ew": | |
print '<td><img src="http://imgs.xkcd.com/clickdrag/%d%s%d%s.png"/>'%(y,ns,x,ew) | |
print "</table></body></html>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment