File:traffic lights closeups.png

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
traffic_lights_closeups.png(776 × 409 pixels, file size: 17 KB, MIME type: image/png)

[edit] Summary

Closeups of the traffic lights, and the bird. This was generated by the script below. It also generated an image of what doesn't (normally) change. There are other changes, but they are minor.

#!/bin/sh

test -f traffic_lights.gif || wget http://imgs.xkcd.com/comics/traffic_lights.gif


gifsicle -e -U traffic_lights.gif

for A in traffic_lights.gif.*
do
    N="${A##*.gif.}"
    B=part-$N

    L="$L $N"
    test -f $B || giftopnm $A >$B
    rm -f $A Q.$N Q.$N.gif Q1.$N
    ln $B Q.$N
done

exise() {
    ppmmake '#ccffcc' $3 $4 >fillimage.ppm
    for A in $L
    do
       pnmcut $1 $2 $3 $4 <part-${A} | pnmpad -black -width 24 >T.${A}

       pnmpaste -replace fillimage.ppm $1 $2  <Q.$A >Q1.$A
       test -s Q1.$A && mv Q1.$A Q.$A

    done
    pnmcat -lr T.??? | pnmpad -white -left 4 -right 4 -top 4 >${5}.pnm
    rm T.??? fillimage.ppm
}

exise 36 92 22 75 light1
exise 109 54 22 55 light2
exise 241 57 22 55 light3
exise 371 56 22 55 light4
exise 498 55 22 55 light5
exise 628 52 22 55 light6
exise 552 24 24 27 bird

for A in Q.???
do
    ppmtogif $A >$A.gif
done
gifsicle --careful -d20 --loopcount -m Q.???.gif -o QQ.gif -O99
rm Q.???.gif Q.???

pnmcat -tb light1.pnm light2.pnm light3.pnm light4.pnm light5.pnm bird.pnm light6.pnm | pnmpad -white -bottom 4 | pnmtopng >traffic_lights_closeups.png


[edit] Licensing

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:53, 4 October 2012Thumbnail for version as of 18:53, 4 October 2012776 × 409 (17 KB)Divad27182 (Talk | contribs)Closeups of the traffic lights, and the bird. This was generated by the script below. It also generated an image of what doesn't (normally) change. There are other changes, but they are minor. #!/bin/sh test -f traffic_lights.gif || wget http:/...

The following page links to this file:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox

It seems you are using noscript, which is stopping our project wonderful ads from working. Explain xkcd uses ads to pay for bandwidth, and we manually approve all our advertisers, and our ads are restricted to unobtrusive images and slow animated GIFs. If you found this site helpful, please consider whitelisting us.

Want to advertise with us, or donate to us with Paypal or Bitcoin?