User Tools

Site Tools


nick_animation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nick_animation [2011/08/10 17:33] marcusnick_animation [2011/08/10 21:48] (current) marcus
Line 3: Line 3:
 ===Specification=== ===Specification===
  
- * Each frame is a .lcd file. +  * Each frame is a .lcd file. 
- * All frames are concatenated and saved as "nick.lcd"+  * All frames are concatenated and saved as "nick.lcd"
- * Each frame is shown with a fixed frame rate of 0.5s.+  * Each frame is shown with a fixed frame rate of 0.5s.
  
 ===Notes on lcd files=== ===Notes on lcd files===
  
- * Pixels are not quadratic, but rectangular with a 1.209 ratio (each pixel is 1.209 times higher than its width). +  * Pixels are not quadratic, but rectangular with a 1.209 ratio (each pixel is 1.209 times higher than its width). 
- * This means a square should be 77 pixel wide and 64 pixel high (for example).+  * This means a square should be 77 pixel wide and 64 pixel high (for example).
  
 ===Automatic conversion from animated gif=== ===Automatic conversion from animated gif===
Line 16: Line 16:
 The "convert" program from imagemagick is the tool to use. The "convert" program from imagemagick is the tool to use.
  
-convert INPUTFILE.gif -background white +adjoin -resize 79x68 -monochrome  -alpha Off -resize '96x68!' -depth 1 -negate out.gif+''convert INPUTFILE.gif -background white +adjoin -resize 96x82 -monochrome -alpha Off -resize '96x68!' -depth 1 -negate out.gif'' 
 + 
 +(This is 96 x 82 and 96 x 68, not that weird multiplication character the wiki makes of it.)
  
 For some reason these must then be flattened (does not work on one line) before converting to LCD format: For some reason these must then be flattened (does not work on one line) before converting to LCD format:
  
-for f in out-*.gif; convert $f -depth 1 -flatten f$f; ../r0ket/tools/imagec/img2lcd.pl f$f; done+''for f in out-*.gif; do convert $f -depth 1 -flatten f$f; ../r0ket/tools/image/img2lcd.pl f$f; done''
  
 Now we can collect them: Now we can collect them:
  
-cat `ls fout-*.lcd |sort -n -t- -k2 ` > nick.lcd+''cat `ls fout-*.lcd |sort -n -t- -k2 ` > nick.lcd''
  
 Copy nick.lcd to your r0ket badge.  Have fun! Copy nick.lcd to your r0ket badge.  Have fun!
  
 +===Sources for animations===
 +
 +  * Stick man animations: http://www.graphicsgrotto.com/animatedgifs/stickfigures/
 +  * 4chan: http://boards.4chan.org/gif/
 +  * Geocities-Charme and other embarrassing shit: http://www.google.com/search?q=animated+gif
 +
 +
 +=== Publish your animation ===
 +You can publish your animation or image [[lcd_art|here]]
nick_animation.1312990438.txt.gz · Last modified: 2011/08/10 17:33 by marcus

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki