rainbow
[ XITE Reference Manual | XITE home ]
Name
rainbow - create a color map based on ihs
Syntax
rainbow [-ib <ib>] [-ie <ie>] [-hb <hb>]
[-he <he>] [-sb <sb>] [-se <se>] [-len len]
<outfile>
Description
Creates a colormap based on IHS-coordinates.
You may set start and stop values for ihs.
for (n=0; n<len; n++) {
I = ib + (ie-ib) * (double) n / (double) len;
H = hb + (he-hb) * (double) n / (double) len;
S = sb + (se-sb) * (double) n / (double) len;
convert (i, h, s) to (r, g, b)
Default values:
ib = 0.5, ie = 0.5
hb = 1/3, he = 1.0
sb = 1.0 se = 1.0
len = 256
"-" or "-1" may be used for outfile to send the result to
stdout.
Restrictions
All values must be in the range 0.0 <= val <= 1.0
See also
ihs(3)
Author
Otto Milvang
Examples
rainbow -ib 0 -ie 1 | mct > mycol.col
Id
$Id: rainbow.c,v 1.20 1996/11/29 15:25:23 svein Exp $