Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rgb(X) — OpenDesktop 1.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     rgb(X)             X Version 11 (11 July 1990)             rgb(X)



     NAME
          rgb - color database compiler

     SYNOPSIS
          rgb [rgbpathname] < rgb.txt

     DESCRIPTION
          rgb invokes the color database compiler.  Using rgb, you can
          define a named color in the Xserver.

          Depending on your graphics adapter and monitor, there are
          two palettes (ranges of colors):

          +   EGA (or VGA with digital RGB monitor)

          +   VGA with analog RGB monitor

          If you have an EGA display, a palette of 64 colors is
          available to your clients.

          If you have a VGA display, a palette of 262,144 colors is
          available only if you use the -analog option of xsight.
          Otherwise, the server assumes the VGA to be an EGA with a
          palette of 64 colors.

          If you have a supported graphics adapter other than EGA or
          VGA, you have two colors, black and white.

          The compiler takes as input the rgb.txt text file and
          creates the RGB database files, rgb.map and rgb.dat, in
          /usr/lib/X11/rgb. Each line of the rgb.txt file consists of
          three color values and a color name. The color values are
          decimal numbers from 0 to 255 for the red, green, and blue
          components of the color. A typical line looks like this:

            35   35   142  Navy Blue


          This entry defines Navy Blue as consisting of 35/255ths of
          the maximum possible intensity of red, 35/255ths of the
          maximum possible intensity of green, and 142/255ths of the
          maximum possible intensity of blue.  The server is case-
          insensitive when searching for color names, so "navy blue"
          or Navy BLUE" finds the entry above, for example.

          Remember that the precision of different adapters varies.
          For example, on an EGA adapter all values from 0 to 63
          display at the same intensity.  Likewise, 64 through 127 are
          the same, 128 through 191 are the same, and 192 through 255
          are the same.

     OPTIONS



     Page 1                                           (printed 7/3/90)






     rgb(X)             X Version 11 (11 July 1990)             rgb(X)



          rgb.dat and rgb.map are the database files that store the
          descriptions of the colors and the assigned values.  Both
          files are created when rgb.txt is compiled.  If you create
          your own rgb.dat and rgb.map files, you must use the xsight
          -fr option.  To activate rgb.txt, you must restart the
          server.

          rgbpathname -  an alternative path and filename to use
          rather than the default of /usr/lib/X11/rgb.[dat|map].

     FILES
          /usr/lib/X11/rgb.txt

     SEE ALSO
          Xsight(X)








































     Page 2                                           (printed 7/3/90)



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