📄 cmap.1
字号:
.\" Copyright (c) 1989, 1991 Entropic Speech, Inc. All rights reserved..\" @(#)cmap.1 1.6 8/4/93 ESI.TH XCMAP 1\-ESPS 8/4/93.ds ]W (c) 1992 ERL, Inc..SH "NAME"xcmap \- generate or edit a colormap (X Window version).SH "SYNOPSIS".B xcmap.SH "DESCRIPTION".PP.I Xcmapis an interactive program for generating or modifyingcolormaps for use by \fIwaves\fP (1\-\s-1ESPS\s+1)+and other programs that read RED, GREEN, and BLUE (RGB)intensity values for controlling the displayed color..PPAs a bit of background,on most color monitors,the color associated with each pixel on the screenis made of the combination of threephosphors: red, blue, and green.The intensity of all three colors can be modified independentlyto produce a spectrum of colors.If all three colors are fully illuminated (set to 255), the resulting color is white; if they are turned off(set to a value of 0), the resulting color is black.As the intensity of the red, green, and blue varies,the three phosphors are mixed to produce a color.For example,equal parts red and green at full intensity, but no blue, produce yellow..PPWhen invoked,\fIxcmap\fP pops up two windows: a control panel and a"colormap window".The control panel has fields for "INPUT file", "OUTPUT file", and"QUIT!", and a slider control for "Brightness".The colormap window has a colormap displayed,a RED\-BLUE\-GREEN color triangle, and numeric display ofcolormap index (Level), RED intensity (R), GREEN intensity (G), andBLUE intensity (B).When the mouse cursor is in the colormap or slightly below,the Level and R, G, B displays applyto the colormap entry closest to the mouse cursor.When the mouse is in the color triangle with the left button held down,the displays apply to the entry being modified.See below for how to modify the colormap..PPBy default, the colormap displayedis a white (left edge) to black (right edge)colormap. (Each entry in the colormap table contains equalred, blue, and green intensities, but theintensities decrease as you move to the right in the displayedcolormap.)An initial colormap for editing can be loaded byentering the colormap file name in the "INPUT file" field.The "Brightness" slider provides a way to multiply all threephosphor intensities by a common value between 0 an 1.A brightness value of 1000, multiplies all intensities by 1;a brightness value of 500, multiplies by .5; and so on.Once you have a colormap that you want to keep,simply type its name into the "OUTPUT file" field and hit return on the keyboard;it will be immediately written out.Clicking the left mouse button on the "Quit!"field exits the colormap program..PPTo modify a colormap, the region of interest is selected byclicking the left mouse button in the colormap at three different places. This results in"handles" being dropped from the colormap.Three adjacent handles define a region of interest.When many handles have been droppedfrom the map, the region of interest can be identifiedby finding the thick handle. The handles to the left andright of the thick onedelimit the active region. To activate a new region,click the left mouse button near the middlehandle (but out of the colormap).Handles can be deleted by using the middle mouse button..PPColor mixing is done by holding the left mouse buttondown while moving the mouse cursor in the RGB color triangle.The color of the selected handle (the thick one)is directly controlled, andRGB intensity levels are linearly interpolatedbetween it and the intensities at the two adjacent handles.By left mouse clicking in the "Brightness" slider,the intensity of the selected handle can be directlychanged..PPSeveral colormaps are in ../esps/lib/waves;you may want to use one of them as a starting point..SH OPTIONSNone..SH "ESPS PARAMETERS"None..SH "ESPS COMMON"Neither read nor written..SH "FUTURE CHANGES".PPProbably many, but not under suntools..SH "WARNINGS AND DIAGNOSTICS".PPColormap generation is a bit of an art and \fIxcmap\fP (1\-\s-1ESPS\s+1)is a bit crude, so patience is required when using it tomake colormaps..PPThe colormap size is fixed at 128 entries.No matter how many entries are specified whengenerating a colormap,linear interpolation is used to generate the restof the values..SH "BUGS".PPNone known. .SH "AUTHOR".PPCode by David Talkin. Manual page by David Burton.Conversion to XView by Rod Johnson.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -