saturmod

[ XITE Reference Manual | XITE home ]

Name

saturmod - modify saturation in color map file

Syntax

 saturmod [<option>] <infile> <outfile>

Description

Reads and modifies a colormap file. See mct(1) for description of the color map file.

Each set of (r,g,b) is converted to (i,h,s). The s (saturation) is modified.

"-" or "-0" can be given for infile to mean stdin. "-" or "-1" can be given for outfile to mean stdout.

Options

Use only one of -f or -s.

-f factor
factor must be >=0. The saturation will be changed like this:

 s_new = 65535 - (65536 - s_old)/factor

-s saturation
saturation must fulfull 0.0 <= saturation <= 1.0. The saturation will be changed like this:
 s_new = saturation * 65535.

Default: factor = 2.0.

See also

mct(1), rainbow(1), ihs(3), color2ascii(1)

Author

Otto Milvang

Revised

Svein Bøe

Examples

 saturmod -s 0.8 mycol.map | mct > mycol.col

Id

$Id: saturmod.c,v 1.22 1997/02/11 15:22:43 svein Exp $