
|
color < Attributes < Home |
![]()
colorThe color attribute defines the color for some part of a visual element. Its value should be 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. |
Supporting TagsThe color attribute is currently supported by the <lineStyle>, <pointStyle>, and <textStyle> tags. The default value of the color attribute depends upon the tag that it modifies. |
Examplescolor="#000000" <!-- black --> color="#FFFFFF" <!-- white --> color="#FF0000" <!-- bright red --> color="#000080" <!-- medium blue --> color="#CCCCCC" <!-- light gray --> |
NotesAlthough 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. |
![]()
Confidential. Copyright © 2002, Oklahoma
Climatological Survey. All Rights Reserved.
Send questions or comments concerning this web page to
wolfie@ou.edu.