| OVERVIEW | CRCL | CALLS | DICTS | FONTS | SOFTWARE | PAPERS | PROJECTS | WHO?... | LISTS | SPOKEN... | REF CARDS | SEEKING | BASICS... | HOW?... | CLOCKS | LOCAL | CONTENTS... |
WHY? --
In a sense, good design is easy -- it's good production that's difficult. This page describes how
to achieve a variety of effects with extremely small gif files. The main advantage of this technique
is that it's quick: a one-pixel gif is about 80 bytes, and can be displayed very quickly even when
it's scaled up to larger sizes.
<IMG SRC="../gif/reddot.gif" WIDTH=200 HEIGHT=1>Here's a 200 by 1 red bar and a 300 by 10 yellow bar: The section header I frequently use is just a series of scaled yellow, clear, and red pixels. View the source of this page to see how it works: CLEAR PIXELS AND BACKGROUNDS -- Making a pixel invisible is easy as pie. Create a single white pixel, then get program giftool.exe. Call it like this:
giftool.exe also turns the gif into an interlaced gif89 format file, which is monumentally silly for one-dot images, but rather handy for anything bigger. Call it as giftool -? to find out how it works. CONTROLLING INDENTING AND SPACING -- The scaled-clear-single-pixel trick is also good for getting more control over indenting and interline spacing. This skips about two-thirds of a line, then indents by about half an inch:
It's how I've been indenting new paragraphs. To get the space without the indent, set the WIDTH to 1, and break instead of aligning.
All original work © 1995 Doug Cooper. Please see this disclaimer, which takes responsibility for content, and the release notice, which gives you the right to copy it. We believe that all files referenced by these pages may be distributed for research / educational purposes. If any file should not be distributed, please let us know and we will remove it. |