Enter a ZIP code to get a forecast:
Setup Location

WRN Logo

Color Table File (.clr)

This file contains the color table information used to set color index and names for WXP programs.  In other words, it list the valid colors that can be used in a WXP program.

FORMAT

Each line of this file contains the color information for a specific color:

[index] name red green blue

where:

  • index -- is the color index used internally to represent the color (this is optional)
  • name -- is an alias that can be used to represent the color index.  This name is used in all color resources
  • red -- the amount of red used in the color (floating point value from 0 to 1)
  • green -- the amount of green used in the color (0 to 1)
  • blue -- the amount of blue used in the color (0 to 1)

Up to 256 colors may be specified in the file. If the index is not specified, the indices start with 0 and increment by one for each line in the file.

End Keyword

A line containing just the word "end" represents the end of the color fill contour colors.  In the first color table database, the color fill resource defaults to all the colors listed.  The end keyword terminates the color fill sequence if the whole file is not part of the color fill pattern.

EXAMPLES

Here is the wxp.clr color database file.

Black      0.0     0.0     0.0
White      1.0     1.0     1.0
Red        0.7     0.0     0.0
Green      0.0     0.7     0.0
Blue       0.0     0.0     0.7
Yellow     1.0     1.0     0.3
Cyan       0.0     0.7     0.7
Magenta    0.7     0.0     0.7
DGray      0.3     0.3     0.3
LGray      0.7     0.7     0.7
LRed       1.0     0.3     0.3
LGreen     0.3     1.0     0.3
LBlue      0.3     0.3     1.0
Brown      0.7     0.7     0.0
LCyan      0.3     1.0     1.0
LMagenta   1.0     0.3     1.0

SEE ALSO


For further information about WXP, email technical-support@weather.unisys.com
Last updated by Dan Vietor on August 10, 1998