< prev | next >

colorTable < Tags < Home

<colorTable>

The <colorTable> tag specifies a custom color table for a <gradient>, <kavouras>, or <nids> product. The content within the <colorTable> consists of a list of RGB colors to apply to the product.

Attributes

None.

Children

None.

Contents

A list of colors in the form "#RRGGBB", where RR, GG, and BB are single-byte hexadecimal values for the red, green, and blue color channels, respectively. This is the same form used to specify colors in HTML.

Although any 24-bit color can be specified in the color attribute, it usually a good idea to stick to the subset of "web-safe" colors that are supported across the majority of browsers and operating systems. This ensures that your colors will look right on 8-bit displays.

Examples

<nids>
  <data src="ktlxbref1.nids"/>
  <colorTable>
    #000000 #111111 #222222 #333333
    #444444 #555555 #666666 #777777
    #888888 #999999 #AAAAAA #BBBBBB
    #CCCCCC #DDDDDD #EEEEEE #FFFFFF
  </colorTable>
</nids>
         
<gradient>
  <data src="latest.mdf" param="TAIR" units="fahr"
    network="Oklahoma Mesonet"/>
  <colorTable>
    #880088 #000088 #888800 #880000
  </colorTable>
</gradient>

Confidential. Copyright © 2002, Oklahoma Climatological Survey. All Rights Reserved.
Send questions or comments concerning this web page to
wolfie@ou.edu.