1CMAP(5)                       File Formats Manual                      CMAP(5)
2
3
4

NAME

6       cmap - format of .cmap files (color maps)
7
8

DESCRIPTION

10       Color-map  files define the mapping between eight-bit color numbers and
11       red, green and blue intensities used for those numbers.  They are  read
12       by  Magic  as  part  of system startup, and also by the :load and :save
13       commands in color-map windows.  Color-map file names usually  have  the
14       form  x.y.z.cmapn, where x is a class of technology files, y is a class
15       of displays, z is a class of monitors, and n is a version number  (cur‐
16       rently  1).  The version number will change in the future if the format
17       of color-map files ever changes.  Normally, x and y correspond  to  the
18       corresponding  parts  of a display styles file.  For example, the color
19       map file mos.7bit.std.cmap1 is used today for most nMOS and CMOS  tech‐
20       nology  files  using displays that support at least seven bits of color
21       per pixel and standard-phosphor monitors.  It corresponds to  the  dis‐
22       play styles file mos.7bit.dstyle5.
23
24       Color-map  files  are  stored  in ASCII form, with each line containing
25       four decimal integers separated by white space.  The first three  inte‐
26       gers  are  red,  green, and blue intensities, and the fourth field is a
27       color number.  For current displays the intensities  must  be  integers
28       between  0 and 255.  The color numbers must increase from line to line,
29       and the last line must have a color number of 255.  The red, green, and
30       blue intensities on the first line are used for all colors from 0 up to
31       and including the color number on that  line.   For  other  lines,  the
32       intensities  on  that  line  are used for all colors starting one color
33       above the color number on the  previous  line  and  continuing  up  and
34       through  the  color  number on the current line.  For example, consider
35       the color map below:
36
37       255     0       0       2
38       0       0       255     3
39       255     255     255     256
40
41
42       This color map indicates that colors 0, 1, and 2 are to be red, color 3
43       is to be blue, and all other colors are to be white.
44
45

SEE ALSO

47       magic(1), dstyle(5)
48
49
50
514th Berkeley Distribution                                              CMAP(5)
Impressum