Page 1 of 1

XKCD 'click and drag' gallery expression

Posted: Tue Sep 25, 2012 4:00 am
by Thrawn
If anyone is interested, here's the FlashGot gallery expression to assemble the pieces of the recent 'click and drag' XKCD comic:

http://imgs.xkcd.com/clickdrag/[1-10][n-s;5][1-50][e-w;18].png

Re: XKCD 'click and drag' gallery expression

Posted: Thu Sep 27, 2012 6:03 pm
by therube
This the home page, http://www.xkcd.com/?

So other then the (seemingly) direct links as "seen" from their webpage, the images are also (?) hosted as you've noted?

http://imgs.xkcd.com/comics/mario.png
http://imgs.xkcd.com/comics/grownups.png
http://imgs.xkcd.com/comics/killed_in_action.png

And from you (which are also valid):

http://imgs.xkcd.com/clickdrag/1n1e.png
http://imgs.xkcd.com/clickdrag/3n2w.png
[n-s;5] ... [e-w;18]
What are the ;5 & ;18 doing?
Oh, they are limiting the range of n-s by 5 (chars), so that it is only n & s that are generated.
Neat, never realized that before.

So just another way of saying
[1-10]n[1-50]e.png
followed by
[1-10]s[1-50]w.png

Re: XKCD 'click and drag' gallery expression

Posted: Thu Sep 27, 2012 7:48 pm
by Thrawn
therube wrote: So just another way of saying
[1-10]n[1-50]e.png
followed by
[1-10]s[1-50]w.png
Not quite. It also includes nw and se.

Re: XKCD 'click and drag' gallery expression

Posted: Thu Sep 27, 2012 8:39 pm
by therube
(Oh yeah.)