home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / mswv052.zip / pattern / convert.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1998-12-02  |  682b  |  19 lines

  1. #!/bin/sh
  2.  
  3. #the idea here is generate all the necessary pics from the basic ones.
  4. #so to replace these pics with better ones, which i would be very glad to
  5. #recieve, make 14.gif to 25.gif transparent gifs with black as the foreground
  6. #colour, and let this script loose on them to automatically generate the others
  7. #
  8. #C.
  9.  
  10. number=26;
  11. for colour in \#0000ff \#00ffff \#00ff00 \#ff00ff \#ff0000 \#ffff00 \#ffffff \#000087 \#008787 \#008700 \#870087 \#870000 \#878700 \#a9a9a9 \#d3d3d3
  12.     do
  13.     for filename in 14.gif 15.gif 16.gif 17.gif 18.gif 19.gif 20.gif 21.gif 22.gif 23.gif 24.gif 25.gif
  14.         do
  15.         giftrans -g \#000000=$colour $filename -o $number.gif;
  16.         number=$[number+1]
  17.         done
  18.     done
  19.