BMPCHIPS and HTML4CHIPS
BMPCHIPS generate chips for rgbp.txt and grayp.txt is also requires
bmp.stub (first 54 bytes of 64x64x24bit Windows BMP).
rgbp.txt and gray.txt are of format:
red green blue color_name
0 0 0 black
255 255 255 white
gcc bmpchips.c -o bmpchips
HTML4CHIPS generates the bulk of the html code and also reads rgbp.txt
Output should be along the lines of:
chip html r g b color name with link to bmp
* #000000 0 0 0 black
gcc html4chips.c -o html4chips
The rgbp.txt and grayp.txt and edited text files originally from
rgb.txt, I saw no reason to have DarkBlue and "dark blue" so I opted to
exclude the later for simplicity, as some programs won't work with
multi-word color names. I also excluded colors grey and Grey as they're
duplicates of gray and Gray.
Neither file checks for the existance of required files and on Snow
Leopard it will SEGFAULT upon trying to read from a nonexistant file.
As these programs are generally expected to be run only once, this
should be a non-issue.
In both cases there is only a check for more than 1 parameter.
These programs are simple hacks intended to be used once, with no real
error checking. I'm releasing them into the public domain.
Latest source is available from:
Michael J. Chappell 8/12/10
Monday, 9 January 2017 Michael J. Chappell Contact me at: