Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ colordemos(1D) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

COLORDEMOS(1D)  —  Silicon Graphics

NAME

showmap, cedit, interp − color map demonstration programs

SYNOPSIS

/usr/people/mexdemos/bin/showmap

/usr/people/mexdemos/bin/cedit

/usr/people/mexdemos/bin/interp

DESCRIPTION

These three color tools display the current color map, edit single colors, and make smooth color ranges respectively.  They operate only under the control of mex, the window manager. Source files for all three programs are in /usr/people/gifts.

Showmap displays the current color map as a square array of color tiles.  To determine the size of the map, showmap calls getplanes. Depending on the number of available bitplanes returned by getplanes, showmap then selects a display of 64, 256, or 1024 entries.  The program is not interactive.  Color 0 is at the lower left corner of the display and the highest color index is at the upper right. 

Cedit displays three color sliders and a test patch.  To alter any displayed color, select the cedit window.  Move the cursor to the color and press and release the left mouse button.  The selected color will be displayed in the test patch.  The color sliders will be set to the relative intensities of red, green, and blue that comprise the color.  To alter the color, move the sliders with the mouse while holding down the right mouse button. 

Interp displays two color chips and a Gouraud-shaded polygon showing the shaderange between them.  To make a shaderange, start windows for showmap, cedit, and interp. Select the color at the lower (usually darker) end of the shaderange and use cedit to set it to the desired value.  Select the color at the top of the shaderange and edit it as well. 

Now select the interp window.  Move the cursor to the lower color (usually on showmap) and release the left mouse button. Move the cursor to the high color and repeat. Move the cursor to interp and press and release the middle mouse button. 

The resultant color array will be gamma-corrected using the floating-point constant in ~/.gamma. If no such file exists, the gamma constant is 1.0.

Version 2.5  —  April 22, 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026