Difference between revisions of "File:traffic lights list.png"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(Single states of the gif file. Each one has duration of 3s. 21 and 22 are the same, also 30 and 31. #!/bin/bash montage traffic_lights.gif -crop '670x150+18+22!' -coalesce -geometry '+6+3' -background white -tile 1x -border 2 -bordercolor black temp_r...)
 
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
Single states of the gif file. Each one has duration of 3s. 21 and 22 are the same, also 30 and 31.
 
Single states of the gif file. Each one has duration of 3s. 21 and 22 are the same, also 30 and 31.
  
 +
<pre>
 
#!/bin/bash
 
#!/bin/bash
 
montage traffic_lights.gif -crop '670x150+18+22!' -coalesce -geometry '+6+3' -background white -tile 1x -border 2 -bordercolor black temp_right.png
 
montage traffic_lights.gif -crop '670x150+18+22!' -coalesce -geometry '+6+3' -background white -tile 1x -border 2 -bordercolor black temp_right.png
Line 8: Line 9:
 
montage temp_left.png temp_right.png -tile 2x1 -mode Concatenate out.png
 
montage temp_left.png temp_right.png -tile 2x1 -mode Concatenate out.png
 
rm temp*
 
rm temp*
 +
</pre>
 +
 
== Licensing ==
 
== Licensing ==
 
{{XKCD file derived}}
 
{{XKCD file derived}}
 +
 +
[[Category:Helper comic images]]

Latest revision as of 18:37, 25 November 2012

Summary[edit]

Single states of the gif file. Each one has duration of 3s. 21 and 22 are the same, also 30 and 31.

#!/bin/bash
montage traffic_lights.gif -crop '670x150+18+22!' -coalesce -geometry '+6+3' -background white -tile 1x -border 2 -bordercolor black temp_right.png
for i in $(seq 01 32); do convert -size 90x160 xc:white -draw "gravity East scale 4,4 text 4,0 '$i'" temp_number_$(printf "%02d" $i).png; done
montage temp_number* -tile 1x -mode Concatenate temp_left.png
montage temp_left.png temp_right.png -tile 2x1 -mode Concatenate out.png
rm temp*

Licensing[edit]

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:45, 4 October 2012Thumbnail for version as of 14:45, 4 October 2012776 × 5,120 (828 KB)Joha.ma (talk | contribs)Single states of the gif file. Each one has duration of 3s. 21 and 22 are the same, also 30 and 31. #!/bin/bash montage traffic_lights.gif -crop '670x150+18+22!' -coalesce -geometry '+6+3' -background white -tile 1x -border 2 -bordercolor black temp_r...
  • You cannot overwrite this file.

The following page links to this file: