# coyote: CINDEX

- coyote/Graphics
- [Source code]

NAME

      CIndex

PURPOSE

      This is a program for viewing the current colors in the
      colortable with their index numbers overlayed on each color.
      On 24-bit systems you must click the cursor in the graphics window
      to see the colors in the current color table.

AUTHOR

      FANNING SOFTWARE CONSULTING
      David Fanning, Ph.D.
      1645 Sheely Drive
      Fort Collins, CO 80526 USA
      Phone: 970-221-0438
      E-mail: david@idlcoyote.com
      Coyote's Guide to IDL Programming: http://www.idlcoyote.com

CATEGORY

       Graphics

CALLING SEQUENCE

        CIndex

INPUTS

         None.

INPUT KEYWORDS

         BREWER:     If this keyword is set, the BREWER colors will be loaded with the
                  Change Colors button. (Assuming the brewer color table file, fsc_brewer.tbl,
                  has been installed.

OUTPUTS

        None

OPTIONAL OUTPUTS

        None

OUTPUT KEYWORDS

      NOTIFYID:   A two-element array containing the Change Colors button widget
                  identifier and the identifier of the top-level base widget. This
                  array is meant to be sent to an XCOLORS routine via its NOTIFYID
                  keyword. This will allow instant updating of the CINDEX interface.

COMMON BLOCKS

        None

SIDE EFFECTS

         None

RESTRICTIONS

         Reqires XCOLORS and cgImage from the Coyote Library:http://www.idlcoyote.com/programs/xcolors.pro
      http://www.idlcoyote.com/programs/cgImage.pro

PROCEDURE

      Draws a 31x25 set of small rectangles in 256 different colors.
      Writes the color index number on top of each rectangle.

MODIFICATION HISTORY

        Written by David Fanning, May 1995Widgetized and made it work in 24-bit color. Colors are
         updated by clicking in window. 22 Oct 98. DWF
      Replace POLYFILL with TV command to avoid underflow error in
         Z-buffer. 8 March 99. DWF
      Fixed a problem with 24-bit devices with color decomposition ON. 15 Feb 2000. DWF.
      Added the NOTIFYID keyword, 15 Dec 2005. DWF.
      Added BREWER keyword, 19 May 2008. DWF.
      Replaced TV commands with cgImage, 12 June 2013. DWF.