The Lurker's Guide to Babylon 5
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
334 B

17 years ago
  1. #!/bin/csh
  2. @ x=0
  3. @ y=0
  4. @ r=0
  5. @ h=100
  6. @ w=80
  7. @ pal=32
  8. @ maxwid=800
  9. while ($y < 400)
  10. @ x = 0
  11. @ c = 0
  12. convert -crop 9999x${h}+0+${y} $1 r${r}.miff
  13. while ($x < ${maxwid})
  14. convert +dither -colors ${pal} -crop ${w}x9999+${x}+0 r${r}.miff r${r}c${c}.gif
  15. echo $r $x
  16. @ x += $w
  17. @ c++
  18. end
  19. rm r${r}.miff
  20. @ y += $h
  21. @ r++
  22. end