File:traffic lights closeups.png

Explain xkcd: It's 'cause you're dumb.
Jump to navigation Jump to search

traffic_lights_closeups.png (776 ร— 409 pixels, file size: 17 KB, MIME type: image/png)

Summary[edit]

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


Licensing[edit]

File history

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

Date/TimeThumbnailDimensionsUserComment
current01:45, 8 July 2026
Error creating thumbnail: Unable to save thumbnail to destination
776 ร— 409 (17 KB)Maintenance script (talk | contribs)Imported from explainxkcd.com archive

The following page uses this file: