home > portfolio 2 > images :: 5x7 font |
![]() |
![]() |
|||||||||||
![]() |
| |||||||||||
overview
To create the individual image files for each character the three layers are first combined or flattened and then saved as a GIF file. The GIF file is then manipulated with a number of shell scripts which use mogrify from Imagemagick as well as sed, awk and tr. mogrify is used to chop up the rectangular grid into 11x15 pixel chunks which are then saved as an animated GIF which is 11x15 pixels. mogrify is then called again, this time via an awk script to extract each frame - each character - from the file and rename the files with a filename that reflects the ASCII-value of the character represented as well as a code to identify the colour combination. Finally giftopnm is called to make the background of each character transparent. In some ways this step is optional but its value lies in the fact that this makes it easy to use different background colours with the same foreground colour files. This brings us to the final three images we need. One image is the background tile; it is used as the background for the HTML TABLE which defines the panel display area. The two other images used are the cursors: a blinking cursor and a spinning cursor. All three images are created with Gimp. Of the two animated images, the blinking cursor is simply an on/off cycle of all 5x7 LCD dots while the spinning cursor is a cycle through the following characters: /, -, \ and |.
|